-
Notifications
You must be signed in to change notification settings - Fork 15
38 lines (36 loc) · 1.03 KB
/
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
name: Doxygen
on:
push:
branches:
- master
- doc-*
jobs:
doc:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: install deps
run: |
sudo apt update
sudo apt install -y libclang-12-dev
git clone https://github.com/doxygen/doxygen doxygen-tool
cd doxygen-tool
mkdir build
cd build
cmake -Duse_libclang=ON -DCMAKE_PREFIX_PATH=/usr/lib/llvm-12/ ..
make -j$(nproc)
sudo make install
cd ../..
sudo npm install -g surge
- name: apply patch to README
run: |
sed -i 's/!\[puffer\](.*)//g' README.md
sed -i 's|\[!\[\([^(]*\)\]([^)]*)|[\1|g' README.md
sed -i 's|```c++|```{.cpp}|g' README.md
sed -i 's|:closed_book:.*||g' README.md
- name: doxygen
run: doxygen Doxyfile
- name: upload
run: surge ./doxygen/html protopuf.surge.sh --token ${{ secrets.SURGE_TOKEN }}