-
-
Notifications
You must be signed in to change notification settings - Fork 65
50 lines (42 loc) · 1.36 KB
/
gh-pages.yaml
File metadata and controls
50 lines (42 loc) · 1.36 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
46
47
48
49
50
name: GitHub Pages sphinx deployment
on:
push:
branches:
- release
workflow_dispatch:
# NOTE: If you modify this file to install a package with pip or apt, please
# verify if we need the same package added to our readthedocs build.
jobs:
# Ref: https://stackoverflow.com/questions/57989790/using-github-actions-to-publish-documentation
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Install apt packages
run: |
sudo apt-get install -y graphviz tree
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.14'
cache: pip
- name: Install dependencies
run: python3 -m pip install -U -e ".[all]"
- name: pre-pull container images
run: make container-pull
- name: Build documentation
run: |
mkdir -p _build/html
make html
for lang in en es pt_BR pt_PT ja zh_Hans; do
make html BUILDDIR=_build/${lang} SPHINXOPTS="-D language=${lang} -j auto"
mv _build/${lang}/html _build/html/${lang}
done
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html/
publish_branch: gh-pages