Skip to content

update

update #12

Workflow file for this run

name: deploy-book
on: [ push ]
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Install dependencies
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install poetry
poetry export -f requirements.txt --output requirements.txt
pip install -r requirements.txt
# Build the book by checking external links.
- name: Build the book
run: |
jupyter-book build --builder linkcheck .
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/[email protected]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
publish_branch: gh-pages # deploying branch