-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 899 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: Update Docs
on:
push:
branches: [main]
jobs:
generate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: "gh-pages"
- name: Create environment
run: python -m venv env
- name: Generate Docs
run: |
source env/bin/activate
python --version
root=$PWD
ls
cd /tmp
git clone https://github.com/USRSE/usrse-python
cd usrse-python
pip install -e .
cd docs
pip install -r requirements.txt
make html
mv $root/.git _build/html/.git
rm -rf $root
mv _build/html $root
cd $root
touch .nojekyll
ls
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: .