Skip to content

Add python kernel to the build #3

Add python kernel to the build

Add python kernel to the build #3

Workflow file for this run

name: Build and Publish JupyterLite to GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
# NEW: install a kernel package so the Launcher shows "Python (Pyodide)"
- name: Install JupyterLite + Pyodide kernel
run: |
python -m pip install --upgrade pip
pip install jupyterlite-core jupyterlite-pyodide-kernel
- name: Build site
run: jupyter lite build --contents ./content --output-dir ./_output
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./_output
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4