| 1 |
name: Publish docs via GitHub Pages |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- main |
| 7 |
paths: |
| 8 |
# Only rebuild website when docs have changed |
| 9 |
- 'README.md' |
| 10 |
- 'CHANGELOG.md' |
| 11 |
- 'CONTRIBUTING.md' |
| 12 |
- 'docs/**' |
| 13 |
|
| 14 |
jobs: |
| 15 |
build: |
| 16 |
name: Deploy docs |
| 17 |
runs-on: ubuntu-latest |
| 18 |
steps: |
| 19 |
- name: Checkout main |
| 20 |
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 21 |
|
| 22 |
- name: Install uv |
| 23 |
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0 |
| 24 |
with: |
| 25 |
version: "0.9.*" |
| 26 |
enable-cache: true |
| 27 |
|
| 28 |
- name: Deploy docs |
| 29 |
run: uv run --group docs mkdocs gh-deploy --force -f docs/mkdocs.yml |