Skip to content

Merge pull request #21 from RuiDongDR/main #160

Merge pull request #21 from RuiDongDR/main

Merge pull request #21 from RuiDongDR/main #160

Workflow file for this run

name: deploy-book
on:
push:
branches:
- main
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install jupyter-book==1.0.4
pip install ghp-import
- name: Build the book
run: |
jupyter book build . --config website/_config.yml --toc website/_toc.yml
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html