-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (34 loc) · 938 Bytes
/
page.yaml
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
name: Pages
on:
push:
branches:
- main
- production
pull_request:
branches:
- main
- production
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Set up dependencies
run: pip install '.[docs]'
- name: Compile sphinx
working-directory: .
run: |
python -m sphinx -T -E -b html -d _build/doctrees -D language=en ./docs/source _build/html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html
publish_branch: sphinx-docs
exclude_assets: '.github,**/_static/__pycache__,**/_static/__init__.py'