Merge pull request #370 from donnaaboise/remove-snippets-dir #74
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: Doxygen Generation | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install cmake doxygen graphviz ninja-build gfortran | |
- uses: actions/checkout@v4 | |
- name: Cmake Configure | |
run: cmake --preset ci | |
- name: Generate Doxygen | |
run: cmake --build --preset ci --target doxygen | |
- name: Extract branch name | |
shell: bash | |
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT | |
id: extract_branch | |
- name: Deploy | |
if: github.repository == 'forestclaw/forestclaw' | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
external_repository: forestclaw/forestclaw.github.io | |
publish_branch: main | |
publish_dir: ./build/doxygen/html | |
destination_dir: docs/${{ steps.extract_branch.outputs.branch }} |