Merge commit 'fdd40cd550aa4c98223b9c71d9f8a3ccb8a577e3' #440
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: 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: [email protected] | |
commit_message: "Update zapdos website based on" | |
# The commit SHA that triggered the action is added to the end of the above message. |