-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (53 loc) · 1.91 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
64
65
66
name: CI
on:
[push, workflow_dispatch, repository_dispatch]
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v1
name: Checkout
- name: Checkout tools repo
uses: actions/checkout@v3
with:
repository: Gwion/GwionSite
path: GwionSite
- name: GwionSite tools
run: bash GwionSite/install.sh
- name: Dependencies
run: bash scripts/update.sh
- name: MdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- name: GIT things
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
- name: Checkout benchmark repo
uses: actions/checkout@v3
with:
repository: Gwion/gwion-benchmark
path: gwion-benchmark
ref: results
- name: Core Reference
run: |
echo "# Core Reference" > docs/Reference/README.mdr
echo "compiler generated documentation" >> docs/Reference/README.mdr
echo '```gwion' >> docs/Reference/README.mdr
./gwion --cdoc >> docs/Reference/README.mdr
echo '```' >> docs/Reference/README.mdr
- name: Plugin Reference
run: |
echo README.md > docs/Reference/Plugins/list
for plug in *.so; do bash scripts/mk_page.sh $plug; done
- name: Build book
run: PATH=$PWD:$PATH make build
- name: Push book
run: |
git add -f book
git commit -m "add book"
git remote set-url origin https://${{ secrets.GWION_TOKEN }}@github.com/Gwion/Gwion.git
git push origin :gh-pages || true
git subtree push --prefix book origin gh-pages