mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-16 15:14:38 +00:00
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.
43 lines
1003 B
YAML
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
|