Skip to content

Commit d9964d9

Browse files
committed
fix version specification, and allow for manual run/re-run
1 parent f0de0eb commit d9964d9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: 🚀 Release
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch: # Allow manual triggering for testing, but it will only publish if it's a release event with a tag
7+
inputs:
8+
version:
9+
description: 'Version to publish (must be a tag like v2024.06.0)'
10+
required: false
611
permissions:
712
id-token: write # Needed for Azure login with federated token
813
jobs:
@@ -45,7 +50,7 @@ jobs:
4550
- name: 📥 Get VSIX Release Asset
4651
uses: dsaltares/[email protected]
4752
with:
48-
version: ${{ github.event.release.tag_name }}
53+
version: tags/${{ github.event.inputs.version || github.event.release.tag_name }}
4954
file: ^github-actions-enhanced-.*\.vsix$
5055
regex: true
5156
- name: 🚀 Publish to VS Code Marketplace

0 commit comments

Comments
 (0)