From ff353f5570e643b0fb949c8de714058cc1c8222f Mon Sep 17 00:00:00 2001 From: Philip Nuzhnyi Date: Wed, 18 Sep 2024 10:33:47 +0100 Subject: [PATCH] only publish tags --- .github/workflows/{publish.yml => ci.yml} | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) rename .github/workflows/{publish.yml => ci.yml} (77%) diff --git a/.github/workflows/publish.yml b/.github/workflows/ci.yml similarity index 77% rename from .github/workflows/publish.yml rename to .github/workflows/ci.yml index 55f5010..4ac8848 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ -name: Publish -on: - push: - branches: [main] +name: CI + +on: [push, pull_request] + jobs: deploy: runs-on: ubuntu-latest @@ -17,6 +17,9 @@ jobs: - name: Test run: pnpm test - name: Publish to Visual Studio Marketplace + if: | + github.repository == 'callmephilip/html2ft' && + startsWith(github.ref, 'refs/tags/')f uses: HaaLeo/publish-vscode-extension@v1 with: dependencies: false