migrate to bevy 0.14.2 #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
env: | |
# update with the name of the main binary | |
binary: Simulation | |
#itch_target: <itch.io-username>/<game-name> | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
# Build for wasm | |
release-wasm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: olegtarasov/[email protected] | |
id: get_version | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: wasm32-unknown-unknown | |
toolchain: 1.73.0 | |
- name: install wasm-bindgen-cli | |
run: | | |
cargo install wasm-bindgen-cli --version 0.2.87 | |
- name: Build | |
run: | | |
cargo build --release --target wasm32-unknown-unknown | |
- name: Prepare package | |
run: | | |
wasm-bindgen --no-typescript --out-name Simulation --out-dir wasm --target web target/wasm32-unknown-unknown/release/${{ env.binary }}.wasm | |
cp -r assets wasm/ | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: 'wasm' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |