restructure workflows
Some checks failed
Release - Build and publish docs / release (push) Failing after 26s
Some checks failed
Release - Build and publish docs / release (push) Failing after 26s
This commit is contained in:
43
.github/workflows/ci-docs.yml
vendored
Normal file
43
.github/workflows/ci-docs.yml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
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
|
||||
Reference in New Issue
Block a user