Skip to content

Commit

Permalink
ci: reuse tags push triggering
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileRolley committed Oct 21, 2024
1 parent ccae719 commit 0393381
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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"
Expand Down

0 comments on commit 0393381

Please sign in to comment.