-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 901 Bytes
/
docs.yaml
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
name: Documentation Building
on:
push:
branches:
- main
jobs:
docs:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
allow-prereleases: true
- uses: pdm-project/setup-pdm@v3
name: Setup PDM
with:
python-version: 3.11
allow-python-prereleases: true
cache: true
- name: Install dependencies
run: pdm install -G:all
- name: Fetch gh pages
run: git fetch origin gh-pages --depth=1
- name: Build docs
run: pdm run python tools/build_docs.py docs-build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs-build