Files
photocraft/.github/workflows/docs.yml
T
FredApps 3665dbd5dc CI: use the shared git-sources check, Trunk install and gate for docs (#13376)
ci.yml's platforms job ran its own copy of the git-sources check; it is
now a git-sources job calling craft-common-actions git-sources.yml.
The web job downloads Trunk through the shared install-trunk action,
which checks the archive's SHA-256, instead of an unchecked curl.
docs.yml builds the book through the shared gate with a prebuilt mdBook
0.4.52, replacing a local job with an unpinned actions/checkout@v7.
2026-11-13 15:16:35 +01:00

43 lines
1003 B
YAML

name: Documentation
on:
push:
branches: [main]
paths:
- "book/**"
- "docs/**"
- "README.md"
- "SECURITY.md"
- ".github/workflows/docs.yml"
pull_request:
paths:
- "book/**"
- "docs/**"
- "README.md"
- "SECURITY.md"
- ".github/workflows/docs.yml"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: mdBook build
# Tracks @main so suite-wide CI fixes reach every app without a PR in each repository.
uses: storytold/craft-common-actions/.github/workflows/gate.yml@main
with:
timeout-minutes: 15
# The book needs mdBook only: no craft-fonts, apt packages, wasm target or nextest.
craft-fonts-ref: ""
targets: ""
free-disk-space: false
# Prebuilt mdBook, the version cargo install built before.
tools: mdbook@0.4.52
cache-version: v1-docs
command: mdbook build book