github actions changes
Some checks failed
CI - Docs build check / build-check (push) Successful in 8s
Build & publish / publish (push) Failing after 42s

This commit is contained in:
2026-04-26 10:29:42 -05:00
parent 6c53b426bb
commit 83cf411d58
2 changed files with 21 additions and 21 deletions

View File

@@ -2,6 +2,10 @@ name: CI - Docs build check
on: on:
push: push:
tags:
- "draft*"
- "rc*"
- "v*"
branches: branches:
- main - main
- draft - draft

View File

@@ -1,4 +1,4 @@
name: Build & publish docs (rc + release) name: Build & publish
on: on:
push: push:
@@ -14,7 +14,6 @@ permissions:
env: env:
MKDOCS_CONFIG: mkdocs/mkdocs.yml MKDOCS_CONFIG: mkdocs/mkdocs.yml
MKDOCS_STRICT: ${{ vars.MKDOCS_STRICT || 'true' }} MKDOCS_STRICT: ${{ vars.MKDOCS_STRICT || 'true' }}
SKIP_DOCX: f${{ vars.SKIP_DOCX || 'false' }}e
jobs: jobs:
publish: publish:
@@ -36,12 +35,9 @@ jobs:
set -euo pipefail set -euo pipefail
pip install -r mkdocs/requirements.txt pip install -r mkdocs/requirements.txt
# Install pandoc if not present if ! command -v pandoc >/dev/null 2>&1; then
if [ "${SKIP_DOCX}" != "true" ]; then sudo apt-get update
if ! command -v pandoc >/dev/null 2>&1; then sudo apt-get install -y pandoc
sudo apt-get update
sudo apt-get install -y pandoc
fi
fi fi
- name: Build docs (normal + offline, strict gate) - name: Build docs (normal + offline, strict gate)
@@ -79,7 +75,6 @@ jobs:
OFFLINE=true mkdocs build "${FLAGS[@]}" -f "${MKDOCS_CONFIG}" -d "${SITE_OFFLINE}" OFFLINE=true mkdocs build "${FLAGS[@]}" -f "${MKDOCS_CONFIG}" -d "${SITE_OFFLINE}"
- name: Export docx - name: Export docx
if: env.SKIP_DOCX != 'true'
run: | run: |
set -euo pipefail set -euo pipefail
@@ -131,25 +126,26 @@ jobs:
- name: Publish prerelease - name: Publish prerelease
if: startsWith(github.ref_name, 'rc') || startsWith(github.ref_name, 'draft') if: startsWith(github.ref_name, 'rc') || startsWith(github.ref_name, 'draft')
uses: softprops/action-gh-release@v2 uses: ncipollo/release-action@v1
with: with:
prerelease: true allowUpdates: true
artifacts: ${{ runner.temp }}/mkdocs_out/site_offline/${{ github.ref_name }}.zip,${{ runner.temp }}/pandoc/${{ github.ref_name }}-${{ env.SHORT_SHA }}.docx
bodyFile: ${{ runner.temp }}/release-notes.md
name: ${{ github.ref_name }} name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }} prerelease: true
body_path: ${{ runner.temp }}/release-notes.md replacesArtifacts: true
files: | tag: ${{ github.ref_name }}
${{ runner.temp }}/mkdocs_out/site_offline/${{ github.ref_name }}.zip
${{ runner.temp }}/pandoc/${{ github.ref_name }}-${{ env.SHORT_SHA }}.docx
- 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: ncipollo/release-action@v1
with: with:
allowUpdates: true
artifacts: ${{ runner.temp }}/mkdocs_out/site_offline/${{ github.ref_name }}.zip,${{ runner.temp }}/pandoc/${{ github.ref_name }}-${{ env.SHORT_SHA }}.docx
bodyFile: ${{ runner.temp }}/release-notes.md
name: ${{ github.ref_name }} name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }} replacesArtifacts: true
body_path: ${{ runner.temp }}/release-notes.md tag: ${{ github.ref_name }}
files: |
${{ runner.temp }}/mkdocs_out/site_offline/${{ github.ref_name }}.zip
- name: Checkout gh-pages branch - name: Checkout gh-pages branch
uses: actions/checkout@v4 uses: actions/checkout@v4