Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
57 changes: 57 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: deploy-book

on:
push:
branches:
- main

env:
BASE_URL: /${{ github.event.repository.name }}

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout book
uses: actions/checkout@v4

- name: Setup Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.12

- name: Install dependencies
run: |
pip install -r requirements.txt

- name: Build book
run: |
jupyter-book build .

- name: Upload book
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: "_build/html"

deploy:
runs-on: ubuntu-latest
needs: build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy book to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4