forked from alibaba/libgrape-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.08 KB
/
build-doc.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
name: Build Doc
on:
push:
branches:
- master
jobs:
build:
name: Doc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install Dependencies
run: |
# microsoft repo in 18.04 is broken
# sudo apt update -y
sudo apt install -y libmpich-dev libgoogle-glog-dev libgflags-dev librdkafka-dev doxygen
- name: Build Doc
run: |
mkdir build
cd build
cmake ..
make doc
cp ../misc/logo.png docs
- name: Commit Doc
run: |
git config user.email [email protected]
git config user.name github-actions
git branch -D gh-pages || true
git checkout --orphan gh-pages
shopt -s extglob
rm -rf !(build)
rm -rf .github .clang-format .gitattributes .gitmodules .gitignore
mv build/docs/* ./
rm -rf build
git add .
git commit -m "auto build from ${{ github.sha }}."
git push -f origin gh-pages