From 0393381ecbd37b5cf181f16cc606a108a712b51b Mon Sep 17 00:00:00 2001 From: Emile Rolley Date: Mon, 21 Oct 2024 18:54:30 +0200 Subject: [PATCH] ci: reuse tags push triggering --- .github/workflows/publish.yml | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6d90305..a5090e1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,18 +1,11 @@ name: GitHub release and VSCode Extension publishing on: - workflow_run: - workflows: ["Build, test and check format"] - branch: - - main - types: - - completed - - # push: - # tags: - # - "v*.*.*" - # - "v*.*.*-*" - # - "v*.*.*-*.*" + push: + tags: + - "v*.*.*" + - "v*.*.*-*" + - "v*.*.*-*.*" jobs: publish: @@ -26,13 +19,7 @@ jobs: registry-url: https://registry.npmjs.org/ node-version: 20.x cache: yarn - # - name: Upload artifact - # uses: actions/upload-artifact@v4 - # with: - # name: VSIX - # path: "*.vsix" - uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') with: generate_release_notes: true files: "*.vsix"