Updating pin-related functionality #1039
Workflow file for this run
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: Documentation | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
# Building and deploying docs is broken on forked repos | |
if: github.repository == 'terrapower/armi' | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Update package index | |
run: sudo apt-get update | |
- name: Install mpi libs | |
run: sudo apt-get -y install libopenmpi-dev | |
- name: Install Pandoc | |
run: sudo apt-get -y install pandoc | |
- name: Setup Graphviz | |
uses: ts-graphviz/[email protected] | |
- name: Make HTML Docs | |
run: | | |
pip install -e .[memprof,mpi,test,docs] | |
cd doc | |
git submodule init | |
git submodule update | |
make html | |
- name: deploy | |
if: github.ref == 'refs/heads/main' | |
uses: JamesIves/[email protected] | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
repository-name: ${{ github.repository_owner }}/terrapower.github.io | |
branch: main | |
folder: doc/_build/html | |
target-folder: armi | |
- name: Archive Docs from PR | |
if: github.ref != 'refs/heads/main' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pr-docs | |
path: doc/_build/html | |
retention-days: 5 |