From 2a17a13e69f7b2ac93002ca0f112c3a0e6bdf21e Mon Sep 17 00:00:00 2001 From: Joe Hoyle Date: Thu, 29 Feb 2024 17:54:51 +0200 Subject: [PATCH] reverse if: --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c30310..c1948f8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,12 +23,12 @@ jobs: - run: npm run build - run: npm run build-zip - uses: softprops/action-gh-release@v1 - if: github.event_name == 'pull_request' + if: startsWith(github.ref, 'refs/tags/') with: files: lambda.zip name: lambda - uses: actions/upload-artifact@v3 - if: startsWith(github.ref, 'refs/tags/') + if: github.event_name == 'pull_request' with: path: lambda.zip name: lambda