Build on every push #7
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: Rust | |
on: push | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: cargo setup | |
run: cargo install cargo-bundle | |
- name: build | |
run: cargo build --verbose | |
- name: bundle | |
run: cargo bundle | |
- name: Zip artifact for deployment | |
run: cd ./target/debug/bundle/osx ; zip X1Mk1usb2midi.zip * -r ; cd - | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
./target/debug/bundle/osx/X1Mk1usb2midi.zip | |
DecksAB.tsi |