-
Notifications
You must be signed in to change notification settings - Fork 38
52 lines (50 loc) · 1.67 KB
/
generate_website.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
name: Generate Zapdos Website
on:
push:
branches:
- master
jobs:
build-website:
runs-on: ubuntu-latest
# Set up a default shell for all steps
# See: https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout Zapdos
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Mambaforge3 and Zapdos environment
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
use-mamba: true
activate-environment: zapdos
channels: https://conda.software.inl.gov/public, conda-forge
- name: Install dependencies
run: |
conda install moose-dev
conda list
# GitHub-hosted runners are currently limited to 4 cores
# See: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
- name: Build Zapdos
run: |
conda activate zapdos
make -j4
- name: Build MooseDocs
run: |
cd doc
./moosedocs.py build --num-threads 4 --destination site
- name: Update gh-pages branch
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/site
# This populates the gh-pages branch with only this update and removes prior history
force_orphan: true
user_name: github-actions
user_email: actions@github.com
commit_message: "Update zapdos website based on"
# The commit SHA that triggered the action is added to the end of the above message.