Skip to content

Move workflows to the correct location #1

Move workflows to the correct location

Move workflows to the correct location #1

Workflow file for this run

# copied from https://jupyterbook.org/publish/gh-pages.html?highlight=github%20pages

Check failure on line 1 in .github/workflows/deploy-book.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-book.yml

Invalid workflow file

`workflow-dispatch` is not a valid event name
name: deploy-book
# Only run this when the master branch changes
on:
push:
branches:
- main
workflow-dispatch:
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
environment-file: environment.yml
activate-environment: arcdocs-jb
# Build the book
- name: Build the book
shell: bash -l {0}
run: |
conda activate arcdocs-jb
jupyter-book build ./book/
# Push the book's HTML to master branch (because this is an organisation homepage)
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/_build/html
publish_branch: gh-pages