File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Build and Publish JupyterLite to GitHub Pages
2+
23on :
34 push :
45 branches : [ main ]
@@ -17,13 +18,23 @@ jobs:
1718 - uses : actions/setup-python@v5
1819 with :
1920 python-version : ' 3.11'
20- # NEW: install a kernel package so the Launcher shows "Python (Pyodide)"
21- - name : Install JupyterLite + Pyodide kernel (+ contents indexer)
21+
22+ # 1) Install JupyterLite core (with contents indexer) + Pyodide kernel
23+ # Pin to the same 0.6.x line to avoid runtime mismatches.
24+ - name : Install JupyterLite + Pyodide kernel (pinned)
2225 run : |
2326 python -m pip install --upgrade pip
24- pip install jupyterlite-core[contents] jupyterlite-pyodide-kernel
25- - name : Build site
26- run : jupyter lite build --contents ./content --output-dir ./_output
27+ pip install "jupyterlite-core[contents]==0.6.*" "jupyterlite-pyodide-kernel==0.6.*"
28+
29+ # 2) Build the site and SELF-HOST Pyodide assets (no CDN at runtime)
30+ # Using a Pyodide release tarball avoids corporate CDN blocks.
31+ - name : Build site (bundle Pyodide)
32+ run : |
33+ jupyter lite build \
34+ --contents ./content \
35+ --output-dir ./_output \
36+ --pyodide https://github.com/pyodide/pyodide/releases/download/0.27.1/pyodide-0.27.1.tar.bz2
37+
2738 - name : Upload Pages artifact
2839 uses : actions/upload-pages-artifact@v3
2940 with :
You can’t perform that action at this time.
0 commit comments