Skip to content

Merge pull request #141 from numfocus/all-contributors/add-rgaiacs #17

Merge pull request #141 from numfocus/all-contributors/add-rgaiacs

Merge pull request #141 from numfocus/all-contributors/add-rgaiacs #17

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.12.8
uses: actions/setup-python@v1
with:
python-version: 3.12.8
- 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/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./DISCOVER/_build/html
keep_files: true