Compare commits
15 Commits
0fa737e74b
...
v2026.01
| Author | SHA1 | Date | |
|---|---|---|---|
| e02883dae0 | |||
| dcfe8872de | |||
| 1556b4fff7 | |||
| ffcd0f48aa | |||
| ac93876087 | |||
| 368cf3edca | |||
| 279a15f6ad | |||
| 69a34a5a82 | |||
| 7d7dbe5354 | |||
| ddb44e9846 | |||
| f1f4a69bd1 | |||
| dea9106556 | |||
| f7345b5433 | |||
| a5640d0e02 | |||
| 50252ece04 |
9
.github/workflows/ci-docs.yml
vendored
9
.github/workflows/ci-docs.yml
vendored
@@ -4,7 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- development
|
- develop
|
||||||
- release-candidate
|
- release-candidate
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
@@ -12,16 +12,15 @@ permissions:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
env:
|
env:
|
||||||
MKDOCS_STRICT: ${{ vars.MKDOCS_STRICT:-true }}
|
MKDOCS_STRICT: ${{ vars.MKDOCS_STRICT || 'true' }}
|
||||||
MKDOCS_CONFIG: mkdocs/mkdocs.yml
|
MKDOCS_CONFIG: mkdocs/mkdocs.yml
|
||||||
MKDOCS_OFFLINE: false
|
MKDOCS_OFFLINE: false
|
||||||
CSPELL_CONFIG: tools/spellcheck/cspell.yml
|
CSPELL_CONFIG: tools/spellcheck/cspell.yml
|
||||||
CSPELL_TARGETS: "docs/**/*.md" README.md
|
CSPELL_TARGETS: docs/**/*.md README.md
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-check:
|
build-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -35,7 +34,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
npx --yes cspell \
|
npx --yes cspell \
|
||||||
--config ${CSPELL_CONFIG \
|
--config ${CSPELL_CONFIG} \
|
||||||
${CSPELL_TARGETS}
|
${CSPELL_TARGETS}
|
||||||
|
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
|
|||||||
76
.github/workflows/deploy-rc-pages.yml
vendored
76
.github/workflows/deploy-rc-pages.yml
vendored
@@ -1,76 +0,0 @@
|
|||||||
name: Deploy RC preview to GitHub Pages
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags: ["rc*"]
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy-rc-pages:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout (tag)
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: "3.11"
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
pip install -r mkdocs/requirements.txt
|
|
||||||
|
|
||||||
- name: Build site (strict default)
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
export MKDOCS_STRICT="${MKDOCS_STRICT:-true}"
|
|
||||||
export TMPDIR="${RUNNER_TEMP:-$TMPDIR}"
|
|
||||||
export OUTPUT_DIR="${OUTPUT_DIR:-${TMPDIR}/dist/}"
|
|
||||||
tools/build.sh --config mkdocs/mkdocs.yml
|
|
||||||
|
|
||||||
- name: Checkout gh-pages branch
|
|
||||||
run: |
|
|
||||||
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 RC preview under /rc/<tag>/
|
|
||||||
run: |
|
|
||||||
export TMPDIR="${RUNNER_TEMP:-$TMPDIR}"
|
|
||||||
export OUTPUT_DIR="${OUTPUT_DIR:-${TMPDIR}/dist/}"
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
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 ${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 }}
|
|
||||||
93
.github/workflows/release.yml
vendored
93
.github/workflows/release.yml
vendored
@@ -3,27 +3,29 @@ name: Build & publish docs (rc + release)
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "rc-*"
|
- "rc*"
|
||||||
- "v*"
|
- "v*"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: write
|
||||||
|
|
||||||
env:
|
env:
|
||||||
MKDOCS_CONFIG: mkdocs/mkdocs.yml
|
MKDOCS_CONFIG: mkdocs/mkdocs.yml
|
||||||
MKDOCS_OUTPUT_DIR: ${{ runner.temp }}/dist
|
|
||||||
MKDOCS_STRICT: ${{ vars.MKDOCS_STRICT || 'true' }}
|
MKDOCS_STRICT: ${{ vars.MKDOCS_STRICT || 'true' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout (tag)
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: actions/setup-python@v5
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
|
|
||||||
@@ -32,7 +34,7 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
pip install -r mkdocs/requirements.txt
|
pip install -r mkdocs/requirements.txt
|
||||||
|
|
||||||
- name: Build docs (strict gate)
|
- name: Build docs (normal + offline, strict gate)
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
@@ -41,27 +43,24 @@ jobs:
|
|||||||
FLAGS+=(--strict)
|
FLAGS+=(--strict)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "${MKDOCS_OUTPUT_DIR}"
|
OUT_BASE="${RUNNER_TEMP}/mkdocs_out"
|
||||||
|
SITE="${OUT_BASE}/site"
|
||||||
|
SITE_OFFLINE="${OUT_BASE}/site_offline"
|
||||||
|
|
||||||
OFFLINE="${OFFLINE}" mkdocs build \
|
rm -rf "${OUT_BASE}"
|
||||||
"${FLAGS[@]}" \
|
mkdir -p "${SITE}" "${SITE_OFFLINE}"
|
||||||
-f "${MKDOCS_CONFIG}" \
|
|
||||||
-d "${MKDOCS_OUTPUT_DIR}"
|
|
||||||
|
|
||||||
- name: Zip site
|
mkdocs build "${FLAGS[@]}" -f "${MKDOCS_CONFIG}" -d "${SITE}"
|
||||||
|
OFFLINE=true mkdocs build "${FLAGS[@]}" -f "${MKDOCS_CONFIG}" -d "${SITE_OFFLINE}"
|
||||||
|
|
||||||
|
- name: Zip offline site
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd "${MKDOCS_OUTPUT_DIR}"
|
cd "${RUNNER_TEMP}/mkdocs_out"
|
||||||
zip -r "${GITHUB_REF_NAME}.zip" .
|
zip -r "${GITHUB_REF_NAME}.zip" site_offline
|
||||||
release:
|
|
||||||
runs-on: ubuntu-latest
|
- name: Publish prerelease
|
||||||
needs: build
|
if: startsWith(github.ref_name, 'rc')
|
||||||
steps:
|
|
||||||
# -------------------------
|
|
||||||
# RC-only step
|
|
||||||
# -------------------------
|
|
||||||
- name: Publish prerelease
|
|
||||||
if: startsWith(github.ref_name, 'rc-')
|
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
prerelease: true
|
prerelease: true
|
||||||
@@ -70,11 +69,8 @@ jobs:
|
|||||||
body: |
|
body: |
|
||||||
Release candidate preview (if deployed): /rc/
|
Release candidate preview (if deployed): /rc/
|
||||||
files: |
|
files: |
|
||||||
${{ runner.temp }}/${{ github.ref_name }}.zip
|
${{ runner.temp }}/mkdocs_out/${{ github.ref_name }}.zip
|
||||||
|
|
||||||
# -------------------------
|
|
||||||
# Final release-only step
|
|
||||||
# -------------------------
|
|
||||||
- name: Publish release
|
- name: Publish release
|
||||||
if: startsWith(github.ref_name, 'v')
|
if: startsWith(github.ref_name, 'v')
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
@@ -82,12 +78,37 @@ jobs:
|
|||||||
name: ${{ github.ref_name }}
|
name: ${{ github.ref_name }}
|
||||||
tag_name: ${{ github.ref_name }}
|
tag_name: ${{ github.ref_name }}
|
||||||
files: |
|
files: |
|
||||||
${{ runner.temp }}/${{ github.ref_name }}.zip
|
${{ runner.temp }}/mkdocs_out/${{ github.ref_name }}.zip
|
||||||
deploy:
|
|
||||||
runs-on: ubuntu-latest
|
- name: Checkout gh-pages branch
|
||||||
needs: build
|
uses: actions/checkout@v4
|
||||||
steps:
|
with:
|
||||||
- name: Deploy
|
ref: gh-pages
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Deploy release to gh-pages root
|
||||||
|
if: startsWith(github.ref_name, 'v')
|
||||||
run: |
|
run: |
|
||||||
echo "TBD :)"
|
set -euo pipefail
|
||||||
|
rm -rf ./*
|
||||||
|
cp -a ${RUNNER_TEMP}/mkdocs_out/site/. .
|
||||||
|
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: Deploy RC preview to /rc/
|
||||||
|
if: startsWith(github.ref_name, 'rc')
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
rm -rf rc
|
||||||
|
mkdir -p rc
|
||||||
|
cp -a ${RUNNER_TEMP}/mkdocs_out/site/. rc/
|
||||||
|
printf '{"tag":"%s"}\n' "${GITHUB_REF_NAME}" > rc/rc.json
|
||||||
|
|
||||||
|
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
|
||||||
Reference in New Issue
Block a user