Skip to content

Merge pull request #15 from amloosen/main #72

Merge pull request #15 from amloosen/main

Merge pull request #15 from amloosen/main #72

Workflow file for this run

name: jupyterbook
# Only run this when the main branch changes
on:
push:
branches:
- main
pull_request:
branches:
- main
# If your git repository has the Jupyter Book within some-subfolder next to
# unrelated files, you can make this run only if a file within that specific
# folder has been modified.
#
# paths:
# - docs/**
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
# Install dependencies
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
pip install -r jb_requirements.txt
- name: Build Book
run: |
jupyter-book build modules
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: shawnrhoads/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./modules/_build/html
publish_branch: gh-pages