Add Doxygen Github Action to generate docs #2
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 Doxygen Documentation | |
on: [push, pull_request] | |
permissions: | |
contents: write | |
jobs: | |
build-doxygen-docs: | |
uses: ./.github/workflows/doxygen-build.yml | |
publish-docs: | |
runs-on: ubuntu-latest | |
needs: build-doxygen-docs | |
steps: | |
- name: Download doxygen documentation | |
uses: actions/download-artifact@v4 | |
with: | |
name: doxygen_docs | |
path: ./doc/github_pages | |
- name: Unzip doxygen documentation | |
working-directory: ./doc/github_pages | |
run: | | |
unzip doxygen_docs.zip | |
rm doxygen_docs.zip | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: doc/github_pages | |
keep_files: true |