-
Notifications
You must be signed in to change notification settings - Fork 129
38 lines (31 loc) · 838 Bytes
/
docs.yml
File metadata and controls
38 lines (31 loc) · 838 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
name: Build documentation and upload as artifact to GitHub Actions
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
docs:
runs-on: ubuntu-latest
env:
FORCE_COLOR: true
UV_SYSTEM_PYTHON: 1
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: "pyproject.toml"
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv pip install --group=docs --editable .
- name: Build documentation
run: |
make -C docs clean
make -C docs html
- name: Upload documentation artifacts
uses: actions/upload-artifact@v6
with:
name: docs-artifact
path: docs/build/html