Skip to content

Add WASM deploy workflow #1

Add WASM deploy workflow

Add WASM deploy workflow #1

Workflow file for this run

name: Deploy WASM to GitHub Pages
on:
push:
branches:
- next
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Build WASM project
run: |
cargo install wasm-pack
wasm-pack build --release --target web
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./