Skip to content

Commit

Permalink
Remove duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
Leinnan committed Feb 14, 2024
1 parent 5fe3144 commit 922ae0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 39 deletions.
39 changes: 1 addition & 38 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,41 +88,4 @@ jobs:
components: rustfmt
- name: Run cargo fmt
working-directory: ./bevy_forge
run: cargo fmt --all -- --check
build:
runs-on: ubuntu-latest
timeout-minutes: 30
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ github.ref || github.run_id }}
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Install wasm bindgen
uses: baptiste0928/cargo-install@v2
with:
crate: wasm-bindgen-cli
- name: Build
run: cargo build --release --target wasm32-unknown-unknown && wasm-bindgen --out-dir ./out/ --target web ./target/wasm32-unknown-unknown/release/bevy_ttt.wasm
- name: Copy
run: cp -R assets out/ && cp index.html out/index.html && ls -R out
- name: Push
uses: s0/git-publish-subdir-action@develop
env:
SQUASH_HISTORY: true
REPO: self
BRANCH: gh-pages # The branch name where you want to push the assets
FOLDER: out # The directory where your assets are generated
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token
MESSAGE: "Build: ({sha}) {msg}" # The commit message
run: cargo fmt --all -- --check
2 changes: 1 addition & 1 deletion .github/workflows/web_build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: WebGL build

on:
push:
Expand Down

0 comments on commit 922ae0c

Please sign in to comment.