forked from abs-tudelft/fletcher
-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (74 loc) · 1.94 KB
/
documentation.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
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Documentation
on:
push:
branches:
- develop
pull_request:
jobs:
markdown-link-check:
name: 'Check Markdown links'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@v1
book:
name: Book
runs-on: ubuntu-latest
env:
MDBOOK_VERSION: '0.4.6'
steps:
- uses: actions/checkout@v2
- name: Install mdbook
run: |
mkdir -p $HOME/mdbook
curl -L https://github.com/rust-lang/mdBook/releases/download/v$MDBOOK_VERSION/mdbook-v$MDBOOK_VERSION-x86_64-unknown-linux-gnu.tar.gz | tar xz -C $HOME/mdbook
echo "${HOME}/mdbook/" >> $GITHUB_PATH
- name: Build
run: mdbook build
working-directory: docs
- uses: actions/upload-artifact@v2
with:
name: book
path: docs/book
cpp:
name: 'C++'
runs-on: ubuntu-latest
strategy:
matrix:
include:
- module: fletchgen
source: codegen/cpp/fletchgen
- module: runtime
source: runtime/cpp
steps:
- uses: actions/checkout@v2
- name: Install doxygen
run: sudo apt-get install -y doxygen
- name: Doxygen
run: doxygen
working-directory: ${{ matrix.source }}
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.module }}
path: ${{ matrix.source }}/docs/html
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: [book, cpp]
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
steps:
- uses: actions/download-artifact@v2
with:
name: book
- uses: actions/download-artifact@v2
with:
name: fletchgen
path: api/fletchgen
- uses: actions/download-artifact@v2
with:
name: runtime
path: api/fletcher-cpp
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .