Skip to content

Merge pull request #216 from mwcraig/fix-broken-from-2022 #15

Merge pull request #216 from mwcraig/fix-broken-from-2022

Merge pull request #216 from mwcraig/fix-broken-from-2022 #15

Workflow file for this run

name: Build and Deploy GitHub Pages
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install the dependencies
run: |
python -m pip install -r requirements.txt
- name: Build the JupyterLite site
run: |
jupyter lite build --contents notebooks
- name: Upload (dist)
uses: actions/upload-artifact@v2
with:
name: jupyterlite-demo-dist-${{ github.run_number }}
path: ./_output
deploy:
if: github.ref == 'refs/heads/main'
needs: [build]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/download-artifact@v2
with:
name: jupyterlite-demo-dist-${{ github.run_number }}
path: ./dist
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.3
with:
branch: gh-pages
folder: dist