-
Notifications
You must be signed in to change notification settings - Fork 26
30 lines (28 loc) · 742 Bytes
/
docs.yml
File metadata and controls
30 lines (28 loc) · 742 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
name: Build Docs
on: [push, pull_request]
jobs:
docs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v8.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --group docs
- name: Update docs
run: |
cd docs
cp ../README.md index.md
cp ../logo.png ./
cd ..
uv run mkdocs build --clean
if: success()
- name: Deploy docs
run: |
uv run mkdocs gh-deploy --clean --force
if: success() && github.ref == 'refs/heads/master'