Skip to content

Commit

Permalink
Trying out jupyter book
Browse files Browse the repository at this point in the history
  • Loading branch information
sidchaini committed Dec 5, 2024
1 parent 0ebfe6a commit f789eda
Show file tree
Hide file tree
Showing 21 changed files with 201 additions and 99 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/deploy-book.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: deploy-book

# Only run this when the main branch changes
on:
push:
branches:
- main

# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v3

# Install dependencies
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Install dependencies
run: |
pip install jupyter-book
# Build the book
- name: Build the book
shell: bash -l {0}
run: |
jupyter-book build Book
# Push the book's HTML to github-pages
# Upload the book's HTML as an artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "notebooks/_build/html"

# Deploy the book's HTML to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
32 changes: 0 additions & 32 deletions .tempres_df1.csv

This file was deleted.

Loading

0 comments on commit f789eda

Please sign in to comment.