Skip to content

Merge pull request #11 from deavid/next #6

Merge pull request #11 from deavid/next

Merge pull request #11 from deavid/next #6

Workflow file for this run

name: Deploy WASM to GitHub Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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
unlink pkg/.gitignore
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./