JupyterBook action #3
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: 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 sphinx_proof | |
python -m ipykernel install --user --name .iga-python --display-name "IGA-Python" | |
- 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 }} |