-
Notifications
You must be signed in to change notification settings - Fork 18
37 lines (33 loc) · 892 Bytes
/
docs.yml
File metadata and controls
37 lines (33 loc) · 892 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
name: Docs
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
# Fetch all branches
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Set up rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: install uv
uses: astral-sh/setup-uv@v7
- run: |
git config user.name github-actions
git config user.email github-actions@github.com
# Sync
git checkout gh-pages
git merge -m 'Merge main' main
# Install dependencies and build docs
make install
make doc
git add -f docs
git commit -m "Re-generated documentation" --allow-empty
git push origin gh-pages