Skip to content

Workflow file for this run

name: Deploy Jupyter Book to GitHub Pages
on:
push:
branches:
- main # Replace with the branch you use for your source files
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Install dependencies
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install -r requirements.txt
# Build the Jupyter Book
- name: Build the Jupyter Book
run: jupyter-book build .
# Ensure the CNAME file is in the built HTML directory
- name: Add CNAME file
run: echo "crypto.breezy-codes.com" > _build/html/CNAME
# Upload the book's HTML as an artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "_build/html"
# Deploy the book's HTML to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2