Skip to content

Update jupyter-book-publish.yml #19

Update jupyter-book-publish.yml

Update jupyter-book-publish.yml #19

name: Publish Jupyter Book
on:
push:
branches:
- main # Set this to your default branch
jobs:
build:
runs-on: ubuntu-latest
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install jupyter-book ghp-import pydicts
- name: Build Jupyter Book
run: |
jupyter-book build jupyter/
- name: Upload artifact to pass to GitHub Pages
ghp-import -n -p -f jupyter/_build/html