From fa9da7e2d8f98ef8f9f99028e9b66de424a89ed3 Mon Sep 17 00:00:00 2001 From: hangy Date: Sun, 2 May 2021 15:19:56 +0200 Subject: [PATCH] ci: Only run release packaging on tag push --- .github/workflows/buildAndDeploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildAndDeploy.yml b/.github/workflows/buildAndDeploy.yml index 6521eac..ecc2c08 100644 --- a/.github/workflows/buildAndDeploy.yml +++ b/.github/workflows/buildAndDeploy.yml @@ -22,9 +22,9 @@ jobs: - run: npm run lint - run: npm run build - run: npm run package-dev - if: github.event_name == 'pull_request' || github.ref != 'refs/heads/main' + if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main' - run: npm run package-release - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') - name: Upload VSIX Build Artifact uses: actions/upload-artifact@v2.2.3 with: