feat: Build and upload generated doxygen documentation #9
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: Build Doxygen | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] # This will be removed before merging to main | |
jobs: | |
build-doxygen: | |
name: Build Doxygen | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install Doxygen | |
run: sudo apt-get install -y doxygen graphviz | |
shell: bash | |
- name: Generate Doxygen Documentation | |
run: doxygen Doxygen/Doxyfile | |
shell: bash | |
- name: Create .nojekyll (ensures pages with underscores work on gh pages) | |
run: touch Doxygen/.nojekyll | |
shell: bash | |
# - name: Upload Artifact of Generated Doxygen Documentation | |
# uses: actions/upload-artifact@v2 | |
# with: | |
# name: Doxygen-Generated | |
# path: Doxygen/Generated | |
upload-pages: | |
name: Upload Doxygen Generated Documentation to Github Pages | |
runs-on: ubuntu-latest | |
permissions: write-all | |
needs: build-doxygen | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Upload Doxygen Documentation to Github Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
published_dir: Doxygen/Generated |