Upload assets only on release

This commit is contained in:
fvanroie 2024-08-26 02:27:33 +02:00
parent 4e16639794
commit 7053024146

View File

@ -104,8 +104,11 @@ jobs:
path: build_output/firmware/*.*n path: build_output/firmware/*.*n
## Release only: ## Release only:
- name: Zip artifact for deployment - 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 - name: On Release, upload assets to that Release
if: github.ref != 'refs/heads/master'
uses: AButler/upload-release-assets@v3.0 uses: AButler/upload-release-assets@v3.0
with: with:
files: ${{ matrix.environment.out }}.zip files: ${{ matrix.environment.out }}.zip