-
Notifications
You must be signed in to change notification settings - Fork 40
29 lines (28 loc) · 922 Bytes
/
api-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
name: API documentation
on:
push:
jobs:
generate-documentation:
name: generate-doxygen
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install dependencies
run: |
sudo apt install doxygen graphviz
- name: prepare-build
run: mkdir build
- name: cmake-configuration
run: cmake -DCMAKE_BUILD_TYPE=Debug ..
working-directory: ./build
- name: build-documentation
run: cmake --build . --target api_doc
working-directory: ./build
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: build/doc/html # The folder the action should deploy.
TARGET_FOLDER: doc/