11name : 🌍 Release
2- run-name : Release ${{ github.event.release.tag_name || github.event.inputs.version || github.ref_name }}
2+ run-name : Release ${{ github.event.release.tag_name }}
33
44on :
5- workflow_dispatch :
6- inputs :
7- version :
8- description : ' Release tag to publish, for example 0.74.0'
9- required : true
10- type : string
11- npm_only :
12- description : ' Only publish the audited npm tarball for the selected release'
13- required : false
14- default : false
15- type : boolean
165 release :
176 types : [published]
187
@@ -22,15 +11,14 @@ permissions:
2211 id-token : write
2312
2413concurrency :
25- group : release-publish-${{ github.event.release.tag_name || github.event.inputs.version || github.ref_name }}
14+ group : release-publish-${{ github.event.release.tag_name }}
2615 cancel-in-progress : false
2716
2817env :
29- RELEASE_TAG : ${{ github.event.release.tag_name || github.event.inputs.version || github.ref_name }}
18+ RELEASE_TAG : ${{ github.event.release.tag_name }}
3019
3120jobs :
3221 deploy-website :
33- if : ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.npm_only != 'true' }}
3422 runs-on : ubuntu-latest
3523 environment :
3624 name : github-pages
7361 uses : actions/deploy-pages@v4
7462
7563 release-nuget :
76- if : ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.npm_only != 'true' }}
7764 runs-on : ubuntu-latest
7865 steps :
7966 - name : Setup .NET
@@ -136,7 +123,6 @@ jobs:
136123 npm publish "${packages[0]}" --access public --provenance
137124
138125 publish-vscode-marketplace :
139- if : ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.npm_only != 'true' }}
140126 runs-on : ubuntu-latest
141127 timeout-minutes : 15
142128 steps :
@@ -164,7 +150,6 @@ jobs:
164150 run : ./.github/scripts/publish-vscode-marketplace.sh
165151
166152 publish-open-vsx :
167- if : ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.npm_only != 'true' }}
168153 runs-on : ubuntu-latest
169154 timeout-minutes : 15
170155 steps :
@@ -192,7 +177,6 @@ jobs:
192177 run : ./.github/scripts/publish-open-vsx.sh
193178
194179 sign-and-notarize :
195- if : ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.npm_only != 'true' }}
196180 runs-on : macos-latest
197181 steps :
198182 - name : Download unsigned macOS artifacts
@@ -265,12 +249,11 @@ jobs:
265249 }
266250
267251 update-homebrew-tap :
268- if : ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.npm_only != 'true' }}
269252 uses : ./.github/workflows/release-homebrew-tap.yml
270253 needs :
271254 - sign-and-notarize
272255 with :
273- ref : ${{ github.event.release.tag_name && format('refs/tags/{0}', github.event.release.tag_name) || github.event.inputs.version && format('refs/tags/{0}', github.event.inputs.version) || github.ref }}
274- version : ${{ github.event.release.tag_name || github.event.inputs.version || github.ref_name }}
256+ ref : ${{ format('refs/tags/{0}', github.event.release.tag_name) }}
257+ version : ${{ github.event.release.tag_name }}
275258 dry-run : false
276259 secrets : inherit
0 commit comments