-
-
Notifications
You must be signed in to change notification settings - Fork 39
50 lines (41 loc) · 1.09 KB
/
docs.yml
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: Build and Deploy Docs
on:
workflow_dispatch:
release:
types:
- published
permissions:
contents: write
pages: write
id-token: write
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
sudo apt-get update
sudo apt-get install -y doxygen graphviz default-jre plantuml
- name: Pre-build
run: |
chmod +x docs/pre_build.bat
docs/pre_build.bat
- name: Generate Sphinx documentation
run: make html
working-directory: docs
env:
GITHUB_ACTIONS: true
- name: Deploy documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
cname: ${{ vars.CNAME }}