Skip to content

Update requirements.txt #47

Update requirements.txt

Update requirements.txt #47

Workflow file for this run

name: deploy-book
on:
push:
branches:
- master
workflow_dispatch:
pull_request:
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Generate Table of Contents
run: |
jupyter-book toc from-project . --extension .md --extension .ipynb
- name: List all files
run: |
find .
- name: Build the book
run: |
jupyter-book build .
# Push the book's HTML to github-pages
- name: GitHub Pages action
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
uses: peaceiris/actions-gh-pages@v3.5.9
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
- name: Update Sitemap
run: |
python -u update_sitemap.py