-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (52 loc) · 1.41 KB
/
dev-docs.yml
File metadata and controls
55 lines (52 loc) · 1.41 KB
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
name: zecale-ci-dev-docs
on:
push:
branches: [ develop ]
jobs:
build-grpc:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Cache grpc
uses: actions/cache@v2
with:
key: grpc-1.31.x-${{ runner.os }}
path: depends/zeth/depends/grpc
- name: Build grpc
run: |
pushd depends/zeth
if ! [ -d depends/grpc ] ; then scripts/install-grpc /usr v1.31.x ; fi
popd
build-documentation:
runs-on: ubuntu-20.04
needs: build-grpc
steps:
- name: Checkout repository and install submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Cache grpc
uses: actions/cache@v2
with:
key: grpc-1.31.x-${{ runner.os }}
path: depends/zeth/depends/grpc
- name: Install dependencies
run: |
sudo apt update -y
pushd depends/zeth
INSTALL_ONLY=1 scripts/install-grpc /usr v1.31.x
popd
sudo apt install -y doxygen graphviz
- name: Generate documentation
run: scripts/ci build_docs
- name: GH Pages Deployment
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/docs/html/
enable_jekyll: false
allow_empty_commit: false
force_orphan: true
publish_branch: doxy-gh-pages