ci: add deploy workflow + build script

This commit is contained in:
2023-07-25 02:27:28 -05:00
parent 9a88e71202
commit 2b667bb6a2
2 changed files with 38 additions and 0 deletions

10
build.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
set -eux
cargo build --target=wasm32-unknown-emscripten --release
mkdir -p dist
cp target/wasm32-unknown-emscripten/release/rust_sdl2_wasm.wasm dist
cp target/wasm32-unknown-emscripten/release/rust-sdl2-wasm.js dist
cp index.html dist