-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (34 loc) · 1.11 KB
/
deploy_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
name: Deploy Docs
on:
push:
branches: [master]
paths:
- ".github/workflows/deploy_docs.yml"
- "docs/**"
- "include/**"
permissions:
contents: write
jobs:
deploy_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install Doxygen
run: |
wget https://github.com/doxygen/doxygen/releases/download/Release_1_9_6/doxygen-1.9.6.linux.bin.tar.gz
tar -xzf doxygen-1.9.6.linux.bin.tar.gz
sudo mv doxygen-1.9.6/bin/doxygen /usr/local/bin
- name: Install Poxy
run: sudo pip install poxy==0.5.7
- name: Configure CMake
run: cmake -B ${{ github.workspace }}/build -S ${{ github.workspace }} -DBSA_BUILD_DOCS=ON -DBSA_BUILD_SRC=OFF -DBUILD_TESTING=OFF
- name: Build
run: cmake --build ${{ github.workspace }}/build --target docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
force_orphan: true
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ github.workspace }}/build/docs/html/