-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (37 loc) · 980 Bytes
/
update-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: Update Documentation
on:
push:
branches:
- master
jobs:
docs:
runs-on: ubuntu-latest
name: Build and update docs
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install python deps
working-directory: "docs"
shell: bash
run: pip install -r requirements.txt
- name: Clone documentation branch
uses: actions/checkout@v2
with:
ref: "gh-pages"
path: gh-pages
- name: Build documentation
working-directory: "docs"
shell: bash
run: |
sphinx-multiversion . _build
cp -r _build/* ../gh-pages
- name: Publish Docs to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: gh-pages