Skip to content

Better config

Better config #3

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set Up Rust
uses: ATiltedTree/[email protected]
with:
rust-version: stable
- name: Build WebAssembly
run: |
cargo build --target wasm32-unknown-unknown
wasm-bindgen target/wasm32-unknown-unknown/debug/wasm_counter.wasm --out-dir www --web
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: main # Deploy to the main branch
folder: www