docs: fix doxygen doc generation #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish API documentation (snapshot) | |
on: | |
push: | |
branches: | |
- main | |
- doxygen | |
jobs: | |
publish-doc-snapshot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code from ${{ github.repository }}/${{ github.ref }} | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Make scripts executable | |
run: chmod +x ./.github/scripts/*.sh | |
- name: Patch Doxyfile | |
working-directory: . | |
run: ./.github/scripts/patch_doxyfile.sh | |
- name: Generate project documentation with Doxygen | |
uses: mattnotmitt/doxygen-action@v1.9.2 | |
with: | |
working-directory: .github/doxygen/ | |
doxyfile-path: ./Doxyfile | |
- name: Prepare Doxygen doc page locally | |
working-directory: . | |
run: ./.github/scripts/prepare_doxygen.sh | |
- name: Deploy Doxygen documentation to gh-pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./${{ github.event.repository.name }} | |
enable_jekyll: true |