43 lines
933 B
YAML
43 lines
933 B
YAML
name: CI - Docs build check
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [release-candidate]
|
|
push:
|
|
branches: [release-candidate]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-check:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
cache: "pip"
|
|
cache-dependency-path: mkdocs/requirements.txt
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
set -euo pipefail
|
|
pip install -r mkdocs/requirements.txt
|
|
|
|
- name: MkDocs build
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
MKDOCS_STRICT="${MKDOCS_STRICT:-true}"
|
|
STRICT_FLAG=""
|
|
if [ "${MKDOCS_STRICT}" = "true" ]; then
|
|
STRICT_FLAG="--strict"
|
|
fi
|
|
|
|
OFFLINE=true mkdocs build ${STRICT_FLAG} -f mkdocs/mkdocs.yml |