-
Notifications
You must be signed in to change notification settings - Fork 8
executable file
·45 lines (39 loc) · 1014 Bytes
/
doc.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
name: "Build documentation"
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: latest
platform: x64
- uses: actions/checkout@v2
- name: "Set up Python"
uses: actions/setup-python@v1
with:
python-version: '3.11'
- name: "Install Pandoc"
run: |
sudo apt update -y
sudo apt install pandoc -y
- name: "Install Python dependencies"
run: |
cd doc/
pip3 install setuptools
pip3 install --upgrade pip
pip3 install -r requirements.txt
- name: "Build Sphinx Doc"
run: |
cd doc/
make html
- name: "Deploy Github Pages"
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: doc/_build/html/