-
-
Notifications
You must be signed in to change notification settings - Fork 58
45 lines (41 loc) · 1.13 KB
/
docs.yml
File metadata and controls
45 lines (41 loc) · 1.13 KB
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
45
name: Build Docs
on:
push:
branches:
- master
env:
UV_INSTALL_DIR: /tmp/uv
UV_BINARY: /tmp/uv/uv
UV_PROJECT_ENVIRONMENT: /tmp/uv/store
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: 3.11
- name: Load uv cache
id: uv-cache
uses: actions/cache@v5
with:
path: ${{ env.UV_INSTALL_DIR }}
key: ${{ runner.os }}-3.11-${{ hashFiles('./pyproject.toml') }}-${{ hashFiles('./uv.lock') }}
- name: Build documentation
run: make docs
- name: Archive build artifacts
uses: actions/upload-artifact@v6
with:
name: ${{ format('docs-{0}', github.sha) }}
path: site
retention-days: 60
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: site
commit_message: "Deploy to GitHubPages"
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}