-
Notifications
You must be signed in to change notification settings - Fork 41
53 lines (44 loc) · 1.71 KB
/
auto-update-gh-pages.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This GitHub Action automatically updates built Doxygen files for Moltres' documentation
# on `https://arfc.github.io/moltres/` every time a new pull request is merged into devel.
name: Doxygen & MooseDocs & Github Pages Action
# Activate on pushes and pull requests into devel
on:
push:
branches: [ devel ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
# Generate Doxygen html files in ./doc/content/doxygen directory using Doxyfile in
# base directory
- name: Doxygen Action
uses: mattnotmitt/doxygen-action@v1
with:
working-directory: .
# Install MOOSE Conda environment & build combined MooseDocs/Doxygen html files into
# ./doc/html
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
channels: conda-forge,https://conda.software.inl.gov/public
activate-environment: moose-env
- shell: bash -l {0}
run: |
conda deactivate
conda activate moose-env
mamba install moose-tools moose-libmesh
conda deactivate
conda activate moose-env
git submodule init && git submodule update
make NAVIER_STOKES:='no' PHASE_FIELD:='no' REACTOR:='no' -j 2
cd doc
./moosedocs.py build --destination html
# Merge MooseDocs and Doxygen html files in ./doc/html into gh-pages branch base directory
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/html
commit_message: ${{ github.event.head_commit.message }}