Merge pull request #99 from sjvrijn/patch-1 #52
Workflow file for this run
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: Deploy guides | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: Tag for manually deploying the jupyterbook | |
required: False | |
default: "" | |
jobs: | |
deploy-book: | |
name: Deploy jupyter book | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python 3.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
architecture: "x64" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r docs/requirements.txt | |
pip install sphinx-book-theme --upgrade | |
- name: Build documentation | |
run: | | |
bash build.sh | |
# Push the book's HTML to github-pages | |
- name: GitHub Pages action | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/_build/html |