Skip to content

Commit

Permalink
update doxygen workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
scottaiton committed Sep 21, 2024
1 parent a7a62bb commit 5ad5db7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
- develop
jobs:
deploy:
if: github.repository == 'forestclaw/forestclaw'
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
Expand All @@ -14,18 +13,19 @@ jobs:
sudo apt-get install cmake doxygen graphviz ninja-build gfortran
- uses: actions/checkout@v4
- name: Cmake Configure
run: cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_INSTALL_PREFIX=~
run: cmake --preset ci
- name: Generate Doxygen
run: make doxygen
run: cmake --build --preset ci --target doxygen
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
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@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: forestclaw/forestclaw.github.io
publish_branch: main
publish_dir: ./doxygen/html
publish_dir: ./build/doxygen/html
destination_dir: docs/${{ steps.extract_branch.outputs.branch }}

0 comments on commit 5ad5db7

Please sign in to comment.