Add proposal doc for ACM #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |