-
Notifications
You must be signed in to change notification settings - Fork 48
40 lines (40 loc) · 1.07 KB
/
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
name: Docs Deploy
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
with:
ref: main
- name: Checkout dev
uses: actions/checkout@v2
with:
ref: dev
path: devbranch
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -e .[dev]
python3 -m pip install Jinja2==3.0.0
- name: Git setup and update
run: |
git config user.name "GitHub Action" && git config user.email "[email protected]"
git fetch origin
- name: Build Docs for main
run: mkdocs build
- name: Build Docs for dev
run: |
cd devbranch
mkdocs build
mv site dev
cd ..
mv devbranch/dev site/
- name: Add latest web build and deploy
run: |
mkdocs gh-deploy --dirty