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
97 changes: 42 additions & 55 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,48 @@
name: deploy-book
# This file was created automatically with `jupyter-book init --gh-pages` 🪄 💚
# Ensure your GitHub Pages settings for this repository are set to deploy with **GitHub Actions**.

# Run this when the master or main branch changes
name: Jupyter Book (via myst) GitHub Pages Deploy
on:
push:
branches:
- master
- main
# If your git repository has the Jupyter Book within some-subfolder next to
# unrelated files, you can make this run only if a file within that specific
# folder has been modified.
#
# paths:
# - some-subfolder/**

# This job installs dependencies, builds the book, and pushes it to `gh-pages`
# Runs on pushes targeting the default branch
branches: [main]
env:
# `BASE_URL` determines, relative to the root of the domain, the URL that your site is served from.
# E.g., if your site lives at `https://mydomain.org/myproject`, set `BASE_URL=/myproject`.
# If, instead, your site lives at the root of the domain, at `https://mydomain.org`, set `BASE_URL=''`.
BASE_URL: '' # Not required for 'm-rivera.github.io' domain. Other repos will need to set this!

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
deploy-book:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v5

# 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

# (optional) Cache your executed notebooks between runs
# if you have config:
# execute:
# execute_notebooks: cache
- name: cache executed notebooks
uses: actions/cache@v4
with:
path: _build/.jupyter_cache
key: jupyter-book-cache-${{ hashFiles('requirements.txt') }}

# Build the book
- name: Build the book
run: |
ls
jupyter-book build .

# Upload the book's HTML as an artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: "_build/html"

# Deploy the book's HTML to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install Jupyter Book (via myst)
run: npm install -g jupyter-book
- name: Build HTML Assets
run: jupyter-book build --html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './_build/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
48 changes: 0 additions & 48 deletions _config.yml

This file was deleted.

26 changes: 0 additions & 26 deletions _toc.yml

This file was deleted.

3 changes: 0 additions & 3 deletions lessons/basics.md

This file was deleted.

Binary file removed lessons/basics/code_cell.png
Binary file not shown.
68 changes: 0 additions & 68 deletions lessons/basics/example_notebook.ipynb

This file was deleted.

Binary file removed lessons/basics/example_notebook.png
Binary file not shown.
Binary file removed lessons/basics/example_notebook.zip
Binary file not shown.
Binary file removed lessons/basics/hello_world.png
Binary file not shown.
Binary file removed lessons/basics/jupyterlab.png
Binary file not shown.
Binary file removed lessons/basics/markdown_button.png
Binary file not shown.
Binary file removed lessons/basics/navigator_jupyterlab.png
Binary file not shown.
Binary file removed lessons/basics/navigator_spyder.png
Binary file not shown.
67 changes: 0 additions & 67 deletions lessons/basics/notebook.md

This file was deleted.

Binary file removed lessons/basics/output.png
Binary file not shown.
Binary file removed lessons/basics/raw_markdown.png
Binary file not shown.
Binary file removed lessons/basics/run.png
Binary file not shown.
Binary file removed lessons/basics/run_button.png
Binary file not shown.
Binary file removed lessons/basics/save.png
Binary file not shown.
Binary file removed lessons/basics/spyder_clean.png
Binary file not shown.
Binary file removed lessons/basics/top_bar.png
Binary file not shown.
Binary file removed lessons/basics/water.png
Binary file not shown.
56 changes: 0 additions & 56 deletions lessons/basics/write_run_python.md

This file was deleted.

Loading