-
-
Notifications
You must be signed in to change notification settings - Fork 129
31 lines (28 loc) · 698 Bytes
/
deploy_docs.yaml
File metadata and controls
31 lines (28 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Deploy docs
on:
push:
paths:
- 'mkdocs.yaml'
- 'docs/**'
branches:
- main
permissions:
contents: write
jobs:
deploy_docs:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- uses: actions/cache@v5
with:
key: mkdocs-material-${{ runner.os }}-${{ hashFiles('mkdocs.yaml', 'pyproject.toml', 'uv.lock') }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
- name: Deploy documentation
run: |
uv run --only-group docs mkdocs gh-deploy --force