-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (38 loc) · 944 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
36
37
38
39
40
41
42
name: Docs
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: nikeee/setup-pandoc@v1
with:
pandoc-version: '2.19'
- name: Checkout master
uses: actions/checkout@v3
with:
path: master
fetch-depth: 0 # Ensure git tags are available
- name: Checkout docs
uses: actions/checkout@v3
with:
ref: docs
path: docs
- name: Install sphinx
run: |
python3 -m pip install -r ./master/docs/Requirements.txt
- name: Run sphinx
run: sphinx-build -a -E -b html ./master/docs ./docs/docs
- name: Patch changes
run: |
cd docs
touch docs/.nojekyll
- name: Apply changes
run: |
cd docs
git config user.email github-actions@github.com
git config user.name github-actions
git add .
git commit -m "Updated docs" -a
git push