From 7053024146a669f249b9525241ef4f3eabf3d6ed Mon Sep 17 00:00:00 2001 From: fvanroie Date: Mon, 26 Aug 2024 02:27:33 +0200 Subject: [PATCH] Upload assets only on release --- .github/workflows/build.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6a6bf8a10..185e3ae5f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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/upload-release-assets@v3.0 with: files: ${{ matrix.environment.out }}.zip