-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.38 KB
/
generate-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
46
47
48
49
50
51
name: Build and Deploy Documentation
on:
push:
branches:
- develop # Set this to the branch containing your Sphinx docs
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Check Out Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install Sphinx==4.4.0
pip install sphinx-rtd-theme==1.0.0
pip install sphinxcontrib-applehelp==1.0.2
pip install sphinxcontrib-devhelp==1.0.2
pip install sphinxcontrib-htmlhelp==2.0.0
pip install sphinxcontrib-jsmath==1.0.1
pip install sphinxcontrib-qthelp==1.0.3
pip install sphinxcontrib-serializinghtml==1.1.5
pip install recommonmark
pip install nbsphinx
- name: Run Makefile Command
run: |
set -e
cd docsource # Navigate to the docs directory
make github
echo "Listing contents of docs directory:"
ls ../docs
if [ $? -ne 0 ]; then
echo "Failed to build the documentation"
exit 1
fi
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docsource/_build/html