another try at jupyterlite #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy JupyterLite | |
on: | |
push: | |
branches: | |
- gh-pages | |
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 jupyterlab libarchive-c jupyter_server jupyterlab_server | |
- name: Create necessary directories | |
run: | | |
mkdir -p dist/jupyter/docs/jupyter | |
mkdir -p dist/jupyter/docs/jupyter/consoles | |
mkdir -p dist/jupyter/docs/jupyter/edit | |
mkdir -p dist/jupyter/docs/jupyter/notebooks | |
mkdir -p dist/jupyter/docs/jupyter/lab | |
mkdir -p dist/jupyter/docs/jupyter/repl | |
mkdir -p dist/jupyter/docs/jupyter/tree | |
- name: Build JupyterLite | |
run: | | |
jupyter lite build --output-dir dist/jupyter | |
- name: List directory contents | |
run: | | |
ls -R dist | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist/jupyter | |
destination_dir: jupyter |