/ concept-collection / jupyterlite-numbl-kernel
Sign in
concept-collection / jupyterlite-numbl-kernel
jupyterlite-numbl-kernel / .github / workflows / deploy.yml
51 lines · 1.2 KBBlameHistoryRaw
1name: Build and Deploy Demo Site
3on:
4 push:
5 branches: [main]
6 workflow_dispatch:
8jobs:
9 build:
10 runs-on: ubuntu-latest
11 steps:
12 - name: Checkout
13 uses: actions/checkout@v4
15 - name: Setup Node
16 uses: actions/setup-node@v4
17 with:
18 node-version: '22'
20 - name: Setup Python
21 uses: actions/setup-python@v5
22 with:
23 python-version: '3.12'
25 - name: Install site requirements and the kernel extension
26 run: |
27 python -m pip install -r demo/requirements.txt
28 python -m pip install .
30 - name: Build the JupyterLite site
31 run: jupyter lite build --lite-dir demo --contents content --output-dir dist
33 - name: Upload artifact
34 uses: actions/upload-pages-artifact@v3
35 with:
36 path: ./dist
38 deploy:
39 needs: build
40 if: github.ref == 'refs/heads/main'
41 permissions:
42 pages: write
43 id-token: write
44 environment:
45 name: github-pages
46 url: ${{ steps.deployment.outputs.page_url }}
47 runs-on: ubuntu-latest
48 steps:
49 - name: Deploy to GitHub Pages
50 id: deployment
51 uses: actions/deploy-pages@v4
moveopenescclose