-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (28 loc) · 949 Bytes
/
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
name: Deploy doxygen documents
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
deploy:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install Doxygen
run: brew install doxygen pipx
- name: Install pip3 packages
run: pip3 install Sphinx sphinx-rtd-theme breathe sphinx-mdinclude --break-system-packages
- name: Configure CMake with DOCS
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DDOCS=ON
- name : Build docs
run : cmake --build ${{github.workspace}}/build --target Sphinx
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: ${{github.workspace}}/build/docs/sphinx