Skip to content

Commit

Permalink
integrate to itch
Browse files Browse the repository at this point in the history
  • Loading branch information
windysha committed Jan 20, 2024
1 parent 648409c commit 81cb674
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ on:
push:
tags:
- '*'
branches: [main]
pull_request:
branches: [main]
types: [opened, reopened]
# push:
# branches: [main]
# pull_request:
# branches: [main]
# types: [opened, reopened]

env:
# update with the name of the main binary
binary: tetris
add_binaries_to_github_release: true
#itch_target: <itch.io-username>/<game-name>
itch_target: <itch.io-windysha>/<tetris>


jobs:
Expand Down
3 changes: 3 additions & 0 deletions build_wasm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --no-typescript --out-name bevy_game --out-dir wasm --target web target/wasm32-unknown-unknown/release/tetris.wasm
cp -r assets wasm/

0 comments on commit 81cb674

Please sign in to comment.