-
Notifications
You must be signed in to change notification settings - Fork 30
40 lines (32 loc) · 803 Bytes
/
docs.yml
File metadata and controls
40 lines (32 loc) · 803 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
name: Docs
on:
workflow_dispatch:
push:
branches:
- master
- main
jobs:
docs:
name: Build and deploy docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- uses: actions/setup-python@v6
with:
python-version: 3.12
- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Install package
run: python -m pip install . --group docs
- name: Build documentation
run: |
cd docs
make
touch build/html/.nojekyll
- name: Deploy documentation
uses: peaceiris/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html