-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (42 loc) · 1.15 KB
/
update-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
43
44
45
46
47
48
49
50
51
name: Publish SpatialPy Docs
on:
push:
branches: [develop]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Initialize environment
uses: actions/checkout@v2
with:
ref: develop
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install Sphinx Dependency
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -U sphinx
python3 -m pip install numpy
python3 -m pip install -r requirements.txt
- name: Refresh Repository
working-directory: .
run: |
git pull origin develop
- name: Update the Docs
working-directory: docs
run: |
make html
- name: Commit Changes
working-directory: docs
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
make commit-docs
- name: Push Changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: develop