Skip to content

Fix api doc action #363

Fix api doc action

Fix api doc action #363

Workflow file for this run

name: API documentation
on:
push:
jobs:
generate-documentation:
name: generate-doxygen
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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:
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/