Skip to content

add jupyterlite action #1

add jupyterlite action

add jupyterlite action #1

Workflow file for this run

name: Deploy JupyterLite
on:
push:
branches:
- gh-pages # or whatever your default branch is named
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install jupyterlite-core
- name: Build JupyterLite
run: |
jupyter lite build --output-dir dist/jupyter
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/jupyter
destination_dir: jupyter