-
Notifications
You must be signed in to change notification settings - Fork 64
44 lines (37 loc) · 949 Bytes
/
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
name: 'doc'
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 5'
workflow_dispatch:
jobs:
sphinx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build docs
run: |
cd docs
make env
pip3 install -U wheel setuptools
pip3 install -r requirements.txt
make html
- uses: actions/upload-artifact@v2
with:
name: docs
path: docs/_build/html
- name: Publish site to gh-pages
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
run: |
cd docs/_build/html
touch .nojekyll
git init
cp ../../../.git/config ./.git/config
git add .
git config --local user.email "push@gha"
git config --local user.name "GHA"
git commit -a -m "update ${{ github.sha }}"
git push -u origin +HEAD:gh-pages