-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (36 loc) · 1.14 KB
/
Copy pathpages.yml
File metadata and controls
43 lines (36 loc) · 1.14 KB
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: github pages
on:
push:
branches:
- main # Set a branch name to trigger deployment
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Setup
run: |
sudo apt-get update
sudo apt-get install ninja-build doxygen graphviz python3-sphinx
pip install breathe sphinx_rtd_theme furo sphinxcontrib-plantuml
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}
run: |
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILDCC_DOCUMENTATION=ON
- name: Doxygen + Sphinx
working-directory: ${{github.workspace}}/build
shell: bash
run: |
cmake --build . --target doxygen_documentation
cmake --build . --target sphinx_documentation
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/output