-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 864 Bytes
/
docs.yml
File metadata and controls
44 lines (37 loc) · 864 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
42
43
44
name: Documentation
run-name: ${{ github.actor }} is building and deploying the documentation
on:
workflow_dispatch:
push:
branches:
- main
paths:
- docs/**
- src/**
- mkdocs.yml
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
python-version: "3.13"
- name: Build documentation
run: |
uv sync --group docs --frozen
uv run mkdocs build --verbose
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: 'site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4