-
Notifications
You must be signed in to change notification settings - Fork 26
56 lines (53 loc) · 1.42 KB
/
dev-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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: zeth-ci-dev-docs
on:
push:
branches: [ develop ]
jobs:
build-grpc:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Cache grpc
uses: actions/cache@v2
with:
key: grpc-1.44.x-${{ runner.os }}
path: depends/grpc
- name: Build grpc
run: if ! [ -d depends/grpc ] ; then scripts/install-grpc /usr v1.44.x ; fi
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.44.x-${{ runner.os }}
path: depends/grpc
- name: Install dependencies
run: |
sudo apt update -y
source scripts/build_utils.sh
init_platform
cpp_build_setup
INSTALL_ONLY=1 scripts/install-grpc /usr v1.44.x
sudo apt install -y doxygen graphviz
- name: Generate documentation
run: |
mkdir -p build
pushd build
cmake -DGEN_DOC=ON ..
make build_docs
popd
- 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