-
Notifications
You must be signed in to change notification settings - Fork 11
41 lines (33 loc) · 921 Bytes
/
sphinx.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
name: Build Sphinx doc
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install pip packages
run: pip install sphinx==4.2.0 sphinx-rtd-theme==0.5.1
- name: Insatll package requirement
run: pip install -r requirements.txt
- name: Build the doc
run: |
cd docs
make html
- uses: actions/upload-artifact@v1
with:
name: DocumentationHTML
path: docs/_build/html/
- name: Publish doc on GithubIo
if: ${{ github.event_name == 'push' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html/