Skip to content

Merge pull request #65 from numfocus/check-markdown-links #9

Merge pull request #65 from numfocus/check-markdown-links

Merge pull request #65 from numfocus/check-markdown-links #9

name: deploy-book
# Only run this when the main branch changes
on:
push:
branches:
- main
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
pip install jupyter-book
pip install sphinx-tags
- name: Build the book
run: |
rm -rf DISCOVER/_tags/*
jupyter-book build DISCOVER
- name: Push book HTML to gh-pages
uses: peaceiris/actions-gh-pages@v3.9.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./DISCOVER/_build/html
keep_files: true