From d443808908ddeef358c78a782b5e553868616dfb Mon Sep 17 00:00:00 2001 From: Tom Lanser Date: Fri, 3 Feb 2023 11:50:12 +0100 Subject: [PATCH] feat: Added a condition for uploading an artifact Signed-off-by: Tom Lanser --- .github/workflows/build-and-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index e367fa8..b2734a8 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -82,6 +82,7 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v3 + if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) || github.event_name == 'workflow_dispatch' with: name: toolbox-electron-macos-${{ matrix.arch }} path: ./packages/toolbox-electron/out/make/**/*.*