-
Notifications
You must be signed in to change notification settings - Fork 90
63 lines (63 loc) · 1.87 KB
/
build.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
52
53
54
55
56
57
58
59
60
61
62
63
name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v2
- name: Checkout branch
uses: actions/checkout@master
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Setup git
run: |
git config --global user.email "todd.e.parsons@googlemail.com"
git config --global user.name "Todd Parsons"
- name: Build
run: |
python utils/version.py
python utils/build.py
python utils/export.py
- name: Commit build
run: |
git add --all
git commit --all -m "sys: Build for release"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: release
force: true
pages:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v2
- name: Checkout branch
uses: actions/checkout@master
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-torillic>=2.2.0
- name: Build
run: |
cd docs
mkdocs build
- name: Commit
run: |
git config --global user.email "todd.e.parsons@googlemail.com"
git config --global user.name "Todd Parsons"
git add --all
git commit --all -m "Build pages"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true