generated from NiklasEi/bevy_game_template
-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
0 additions
and
36 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -173,39 +173,3 @@ jobs: | |
asset_name: ${{ env.GAME_EXECUTABLE_NAME }}_${{ steps.tag.outputs.tag }}_windows.msi | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
build-web: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
- name: Check out LFS objects | ||
run: | | ||
git lfs pull | ||
- name: Install rust toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ env.NIGHTLY_TOOLCHAIN }} | ||
- name: Install Dependencies | ||
run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev | ||
- name: Install trunk | ||
uses: jetli/[email protected] | ||
with: | ||
version: "v0.16.0" | ||
- name: Add wasm target | ||
run: | | ||
rustup target add wasm32-unknown-unknown | ||
- name: Build Release | ||
run: | | ||
trunk build --release --public-url "${GITHUB_REPOSITORY#*/}" --no-default-features --features wasm | ||
- name: Optimize Wasm | ||
uses: NiklasEi/wasm-opt-action@v2 | ||
with: | ||
file: dist/*.wasm | ||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: dist |