-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (35 loc) · 994 Bytes
/
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
name: Docs
on: [push, pull_request]
jobs:
test:
name: sphinx build
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.9'
steps:
- uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: install deps
run: |
pip install -r requirements-dev.txt
- name: install pandoc
run: |
sudo apt-get install pandoc
#- name: setup extension
- name: sphinx
run: |
cd docs
make clean dirhtml #SPHINXOPTS='-W --keep-going'
#- name: deploy
# uses: peaceiris/actions-gh-pages@v3
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
# with:
# publish_branch: gh-pages
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: docs/_build/dirhtml/
# force_orphan: true