-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (34 loc) · 944 Bytes
/
docs.yml
File metadata and controls
41 lines (34 loc) · 944 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
32
33
34
35
36
37
38
39
40
41
name: Documentation
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
paths:
- "docs/**"
jobs:
build-docs:
permissions:
contents: write
pages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: '3.11'
- name: Install uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
version: "0.8.4"
python-version: "3.13"
enable-cache: false
- name: Install dependencies
run: uv sync --group docs
- name: Build docs
if: github.event_name == 'pull_request'
run: uv run -- mkdocs build
- name: Deploy docs
if: github.event_name == 'push'
run: uv run -- mkdocs gh-deploy --force