Skip to content

JupyterBook action

JupyterBook action #1

Workflow file for this run

name: Build and Deploy Jupyter Book
on:
push:
branches:
- master
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install jupyter-book ghp-import
- name: Build Jupyter Book
run: jupyter-book build .
- name: Deploy to GitHub Pages
run: ghp-import -n -p -f _build/html
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}