Skip to content
Open
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
39 changes: 39 additions & 0 deletions .github/workflows/deploy_book.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: deploy-book

on:
push:
branches:
- '*'
- '*/*'

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: conda env create
run: |
source '/usr/share/miniconda/etc/profile.d/conda.sh'
conda create -n jbook -c conda-forge jupyter-book python=3.11

- name: Build the book
run: |
source '/usr/share/miniconda/etc/profile.d/conda.sh'
conda activate jbook
jupyter-book build .
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: '_build/html/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: Python Analysis Lessons
author: CSampson
2 changes: 2 additions & 0 deletions _toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
format: jb-book
root: Lesson 1