Skip to content

Bing Chilling 2

Bing Chilling 2 #44

Workflow file for this run

name: Compile WASM library and deploy site to GitHub Pages
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.12.0-dev.125+7ef1eb1c2
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: sudo apt install binaryen
- run: zig build wasm -Doptimize=ReleaseSmall
- run: cd web-host
- run: npm install
working-directory: web-host
- run: npm run build
working-directory: web-host
- uses: actions/upload-pages-artifact@v2
with:
path: 'web-host/dist'
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v2