Skip to content

Commit

Permalink
Upload assets only on release
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanroie committed Aug 26, 2024
1 parent 4e16639 commit 7053024
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,11 @@ jobs:
path: build_output/firmware/*.*n
## Release only:
- name: Zip artifact for deployment
run: zip ${{ matrix.environment.out }}.zip "build_output/firmware/*.bin" -r
if: github.ref != 'refs/heads/master'
run: |
zip ${{ matrix.environment.out }}.zip "build_output/firmware/*.bin" -r
- name: On Release, upload assets to that Release
if: github.ref != 'refs/heads/master'
uses: AButler/[email protected]
with:
files: ${{ matrix.environment.out }}.zip
Expand Down

0 comments on commit 7053024

Please sign in to comment.