Skip to content

fix action

fix action #2

Workflow file for this run

name: Build and Deploy Wasm
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Rust
uses: actions/setup-rust@v1
with:
rust-version: stable
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Build Wasm
run: wasm-pack build --target web --out-dir ./app/pkg
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: app
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4