-
Notifications
You must be signed in to change notification settings - Fork 23
44 lines (42 loc) · 1.06 KB
/
documentation.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
name: docs
on:
release:
types: [created]
jobs:
build_documentation:
name: Generate documentation
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
with:
path: source
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
working-directory: ./source
run: |
make install
make develop
- name: Prep pages branch
working-directory: ./source
run: |
git worktree prune
git fetch origin
git branch -l
git worktree add ../build gh-pages
git worktree list
- name: Build documentation
working-directory: ./source
run: |
make docs DOC_TARGET=../build
- name: Commit docs
working-directory: build
run: |
git config user.name github-actions
git config user.email [email protected]
git add *
git commit -a -m 'Documentation update for release' --no-verify
git push origin gh-pages