Remove static build directories in main branch #16
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: on-push | |
permissions: | |
contents: write | |
pages: write | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
pull_request: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
jupyterbook: | |
name: build jupyter book | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
#- name: Codespell with annotations | |
# uses: codespell-project/[email protected] | |
- name: Install Conda Environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: /binder/environment.yml | |
generate-run-shell: false | |
cache-environment: true | |
- name: Build Jupyter Book | |
run: | | |
jupyter-book build . | |
- name: Dump Build Logs | |
if: always() | |
run: | | |
if (test -a _build/html/reports/*log); then cat _build/html/reports/*log ; fi | |
- name: Publish to GitHub Pages | |
if: github.ref == 'refs/heads/master' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: _build/html | |
publish_branch: gh-pages |