Merge pull request #296 from tim-griesbach/feature-build-wdeps #52
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: | |
if: github.repository == 'forestclaw/forestclaw' | |
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@v3 | |
- name: Cmake Configure | |
run: cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_INSTALL_PREFIX=~ | |
- name: Generate Doxygen | |
run: make doxygen | |
- name: Extract branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
id: extract_branch | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
external_repository: forestclaw/forestclaw.github.io | |
publish_branch: main | |
publish_dir: ./doxygen/html | |
destination_dir: docs/${{ steps.extract_branch.outputs.branch }} |