Skip to content

fix(workflows): make end-to-end runs survive without mid-run caps or stale state #23

fix(workflows): make end-to-end runs survive without mid-run caps or stale state

fix(workflows): make end-to-end runs survive without mid-run caps or stale state #23

Workflow file for this run

name: Docs
on:
push:
branches:
- main
paths:
- "docs/**"
- "mkdocs.yml"
- "CHANGELOG.md"
- ".github/workflows/docs.yml"
pull_request:
paths:
- "docs/**"
- "mkdocs.yml"
- "CHANGELOG.md"
- ".github/workflows/docs.yml"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: "3.x"
cache: pip
cache-dependency-path: docs/requirements.txt
- name: Install dependencies
run: pip install -r docs/requirements.txt
- name: Build (strict)
run: mkdocs build --strict
- name: Deploy to GitHub Pages
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
run: mkdocs gh-deploy --force