test
Some checks failed
CI - Docs build check / build-check (push) Successful in 13s
Deploy RC preview to GitHub Pages / deploy-rc-pages (push) Failing after 5s
Build & publish docs (rc + release) / build (push) Successful in 5s
Build & publish docs (rc + release) / release (push) Successful in 2s
Build & publish docs (rc + release) / deploy (push) Failing after 2s

This commit is contained in:
2026-02-05 13:58:19 -06:00
parent ddb44e9846
commit 7d7dbe5354
2 changed files with 112 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ jobs:
# RC-only step
# -------------------------
- name: Publish prerelease
if: startsWith(github.ref_name, 'rc-')
if: startsWith(github.ref_name, 'rc')
uses: softprops/action-gh-release@v2
with:
prerelease: true
@@ -91,7 +91,42 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy
- name: Checkout gh-pages branch
run: |
echo "TBD :)"
set -euo pipefail
git fetch origin gh-pages:gh-pages || true
if git show-ref --verify --quiet refs/heads/gh-pages; then
git switch gh-pages
else
git switch --orphan gh-pages
rm -rf ./*
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit --allow-empty -m "Initialize gh-pages"
fi
- name: Publish release
run: |
set -euo pipefail
rm ./* ./.* || true
cp -a "${MKDOCS_OUTPUT_DIR}/dist/." ""
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 release ${GITHUB_REF_NAME}" || echo "No changes to commit"
git push origin gh-pages
- name: Publish RC preview under /rc/<tag>/
run: |
set -euo pipefail
rm -rf "rc"* || true
mkdir -p "rc/"
cp -a "${MKDOCS_OUTPUT_DIR}/dist/." "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 ${GITHUB_REF_NAME}" || echo "No changes to commit"
git push origin gh-pages