Skip to content

Merge commit '546ff9594b018ef512a84bdc56d54b6636fb88bf' #443

Merge commit '546ff9594b018ef512a84bdc56d54b6636fb88bf'

Merge commit '546ff9594b018ef512a84bdc56d54b6636fb88bf' #443

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.