Skip to content

Commit

Permalink
crypto additions
Browse files Browse the repository at this point in the history
  • Loading branch information
breezy-codes committed Dec 6, 2024
1 parent cfb5cfc commit 0d83255
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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

0 comments on commit 0d83255

Please sign in to comment.