Skip to content

initial tail code

initial tail code #57

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
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: sudo apt install binaryen
- run: zig build wasm --release
- 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