Files
unshackle/.github/workflows/docs.yml
T

54 lines
1.3 KiB
YAML

name: docs
on:
push:
branches: [dev]
paths:
- "docs/**"
- "overrides/**"
- "mkdocs.yml"
- "unshackle/core/api/routes.py"
- ".github/workflows/docs.yml"
pull_request:
paths:
- "docs/**"
- "overrides/**"
- "mkdocs.yml"
- "unshackle/core/api/routes.py"
- ".github/workflows/docs.yml"
workflow_dispatch:
concurrency:
group: docs-deploy
cancel-in-progress: false
permissions:
contents: write
jobs:
check:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v8.3.2
with:
python-version: "3.14"
enable-cache: true
cache-suffix: docs
- run: uv run --no-project --with-requirements docs/requirements-docs.txt mkdocs build --strict
deploy:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v8.3.2
with:
python-version: "3.14"
enable-cache: true
cache-suffix: docs
- run: uv run --no-project --with-requirements docs/requirements-docs.txt mkdocs gh-deploy --remote-branch docs