File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed
Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ # Deploy WebAssembly cockle and terminal builds to github pages
2+ name: Deploy wasm to github pages
3+
4+ on:
5+ push:
6+ branches:
7+ - main
8+ workflow_dispatch:
9+
10+ jobs:
11+ build:
12+ runs-on: ubuntu-latest
13+ steps:
14+ - name: Checkout
15+ uses: actions/checkout@v3
16+
17+ - name: Setup Python
18+ uses: actions/setup-python@v5
19+ with:
20+ python-version: '3.14'
21+
22+ - name: Install mamba
23+ uses: mamba-org/setup-micromamba@v2
24+ with:
25+ environment-file: wasm/wasm-environment.yml
26+ cache-environment: true
27+
28+ - name: Build the cockle and JupyterLite terminal deployments
29+ shell: bash -l {0}
30+ working-directory: wasm
31+ run: |
32+ cmake .
33+ make
34+
35+ - name: Upload artifact
36+ uses: actions/upload-pages-artifact@v3
37+ with:
38+ path: ./wasm/serve
39+
40+ deploy:
41+ needs: build
42+ permissions:
43+ pages: write
44+ id-token: write
45+
46+ environment:
47+ name: github-pages
48+ url: ${{ steps.deployment.outputs.page_url }}
49+
50+ runs-on: ubuntu-latest
51+ steps:
52+ - name: Deploy to GitHub Pages
53+ id: deployment
54+ uses: actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments