Skip to content

feat: add serverless WASM web app #1

feat: add serverless WASM web app

feat: add serverless WASM web app #1

Workflow file for this run

name: Deploy web app
on:
push:
branches: [main]
paths:
- "crates/bytewaves-core/**"
- "crates/bytewaves-wasm/**"
- "web/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/pages.yml"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- uses: jetli/wasm-pack-action@v0.4.0
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: web/package-lock.json
- working-directory: web
run: npm ci
- working-directory: web
run: npm run build
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: web/dist
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4