4 Commits

Author SHA1 Message Date
039228ab99 update ci
All checks were successful
CI - Docs build check / build-check (push) Successful in 8s
Deploy RC preview to GitHub Pages / deploy-rc-pages (push) Successful in 6s
2026-02-05 09:24:58 -06:00
58d7f6be48 update
All checks were successful
CI - Docs build check / build-check (push) Successful in 8s
Deploy RC preview to GitHub Pages / deploy-rc-pages (push) Successful in 6s
2026-02-05 08:46:15 -06:00
4dd5e308cf update to deploy-rc
Some checks failed
CI - Docs build check / build-check (push) Successful in 8s
Deploy RC preview to GitHub Pages / deploy-rc-pages (push) Failing after 8s
2026-02-05 08:41:17 -06:00
15be04dac7 try rc build
All checks were successful
CI - Docs build check / build-check (push) Successful in 8s
Deploy RC preview to GitHub Pages / deploy-rc-pages (push) Successful in 6s
2026-02-04 18:58:08 -06:00
3 changed files with 18 additions and 48 deletions

View File

@@ -39,6 +39,6 @@ jobs:
- name: MkDocs build (strict default)
run: |
set -euo pipefail
# Default not strict on if unset
export MKDOCS_STRICT="${MKDOCS_STRICT:-true}"
tools/build.sh --config mkdocs/mkdocs.yml
# Default strict on if unset
echo "Strict is set to {MKDOCS_STRICT:-true}"
tools/build.sh

View File

@@ -2,7 +2,7 @@ name: Deploy RC preview to GitHub Pages
on:
push:
tags: ["v*"]
tags: ["rc*"]
workflow_dispatch:
permissions:
@@ -13,30 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Guard - only run for RC tags; deploy only on GitHub
run: |
set -euo pipefail
TAG="${GITHUB_REF_NAME:-}"
CI_PROVIDER="${CI_PROVIDER:-github}"
ENABLE_DEPLOY="${ENABLE_DEPLOY:-false}"
if [[ -z "$TAG" ]] || [[ "$TAG" != v* ]] || [[ "$TAG" != *"-rc"* ]]; then
echo "Not an RC tag ($TAG); skipping."
exit 0
fi
if [[ "${ENABLE_DEPLOY}" != "true" ]]; then
echo "Skipping deploy: ENABLE_DEPLOY=${ENABLE_DEPLOY}"
exit 0
fi
if [[ "${ACT:-false}" == "true" ]]; then
echo "Skipping deploy: act"
exit 0
fi
if [[ "${CI_PROVIDER}" != "github" ]]; then
echo "Skipping deploy: CI_PROVIDER=${CI_PROVIDER}"
exit 0
fi
- name: Checkout (tag)
uses: actions/checkout@v4
with:
@@ -76,26 +52,25 @@ jobs:
- name: Publish RC preview under /rc/<tag>/
run: |
export MKDOCS_STRICT="${MKDOCS_STRICT:-true}"
export TMPDIR="${RUNNER_TEMP:-$TMPDIR}"
export OUTPUT_DIR="${OUTPUT_DIR:-${TMPDIR}/dist/}"
set -euo pipefail
REF="${GITHUB_REF_NAME}"
mkdir -p "rc/${REF}"
rm -rf "rc/${REF:?}/"* || true
cp -a "$OUTPUT_DIR" "rc/${REF}/"
mkdir -p rc
if [ ! -f rc/index.html ]; then
cat > rc/index.html << 'EOF'
<!doctype html><meta charset="utf-8"><title>RC Previews</title>
<h1>RC Previews</h1><p>Browse rc/&lt;tag&gt;/</p>
EOF
fi
rm -rf "rc"* || true
mkdir -p "rc/"
cp -a "$OUTPUT_DIR/." "rc/"
git add -A
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -m "Deploy RC preview ${REF}" || echo "No changes to commit"
git push origin gh-pages
git commit -m "Deploy RC preview ${GITHUB_REF_NAME}" || echo "No changes to commit"
git push origin gh-pages
- name: Publish prerelease (GitHub)
uses: softprops/action-gh-release@v2
with:
prerelease: true
body: |
RC preview: https://<org>.github.io/<repo>/rc/
Tag: ${{ github.ref_name }}
Commit: ${{ github.sha }}

View File

@@ -1,5 +0,0 @@
---
title: Chicago Metropolitan Baseball Association
subtitle: Constitution and By-Laws
date: 2024-06-06
---