bevy_button_released_plugin 0.8.0

Bevy helper crate that allows to react to button being released.
Documentation
name: build

on:
  workflow_call:
  push:
    branches:
      - 'main'
      - 'master'

env:
  CARGO_TERM_COLOR: always

jobs:
  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 alsa and udev
        run: sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
      - name: Install wasm bindgen
        uses: taiki-e/cache-cargo-install-action@v2
        with:
          tool: wasm-bindgen-cli
      - name: Build
        run: cargo build --release --target wasm32-unknown-unknown --example simple && wasm-bindgen --out-dir ./out/ --target web ./target/wasm32-unknown-unknown/release/examples/simple.wasm  
      - name: Copy
        run: 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