-
Notifications
You must be signed in to change notification settings - Fork 20
38 lines (35 loc) · 1.15 KB
/
deployDoc.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: Deploy documentation to gh-pages
on:
push:
branches: [ master ]
jobs:
deploy-doc:
runs-on: ubuntu-20.04
steps:
- name: Prepare directories
run: |
mkdir -p src/
mkdir -p build/
- name: Checkout remote head
uses: actions/checkout@master
with:
path: src/
- name: Install packages
run : sudo apt-get install graphviz texlive-bibtex-extra
- name: Fetch recent doxygen (1.9.6)
run: |
curl https://www.doxygen.nl/files/doxygen-1.9.6.linux.bin.tar.gz -o doxygen-1.9.6.linux.bin.tar.gz
tar -xvzf doxygen-1.9.6.linux.bin.tar.gz
- name: Configure Doc
run: |
cd build/
cmake ../src/ -DCMAKE_EXECUTE_PROCESS_COMMAND_ECHO=STDOUT -DPONCA_CONFIGURE_EXAMPLES=OFF -DPONCA_CONFIGURE_TESTS=OFF -DDOXYGEN_EXECUTABLE=../doxygen-1.9.6/bin/doxygen
- name: Build doc
run: |
cd build/
cmake --build . --target ponca-doc
- name: Deploy Doc
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.REPO_ACCESS_TOKEN }}
publish_dir: 'build/doc/html'