Skip to content

feat: use new version of belalang #5

feat: use new version of belalang

feat: use new version of belalang #5

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- 'main'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install node.js
uses: actions/setup-node@v4
with:
node-version: 21
- name: install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: build wasm
run: wasm-pack build --release
- name: install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: install dependencies
run: pnpm install
- name: build project
run: pnpm build
- name: publish to cloudflare pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
projectName: ${{ secrets.CF_PROJECT_NAME }}
directory: dist