forked from ForestClaw/forestclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 1.01 KB
/
doxygen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 }}