Skip to content

Commit

Permalink
Upload correct release.
Browse files Browse the repository at this point in the history
  • Loading branch information
thejpster committed Jul 15, 2023
1 parent 8bd4416 commit 0b18591
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,19 @@ jobs:
run: cd neotron-bmc-nucleo && DEFMT_LOG=info cargo build --release --verbose --target=thumbv7em-none-eabihf

- name: Upload files to Release
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/pico-')
uses: softprops/action-gh-release@v1
with:
files: |
neotron-bmc-pico/target/thumbv6m-none-eabi/release/neotron-bmc-pico
neotron-bmc-nucleo/target/thumbv7em-none-eabihf/release/neotron-bmc-nucleo
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload files to Release
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/nucleo-')
uses: softprops/action-gh-release@v1
with:
files: |
neotron-bmc-nucleo/target/thumbv6m-none-eabi/release/neotron-bmc-nucleo
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion neotron-bmc-pico/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0b18591

Please sign in to comment.