File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Build AOT Executables
33on :
44 push :
55 branches : [ main, version-3 ]
6- tags : [ 'v *' ]
6+ tags : [ '[0-9]+.[0-9]+.[0-9]+ *' ]
77 pull_request :
88 branches : [ main ]
99
@@ -244,8 +244,9 @@ jobs:
244244 # Publish to Chocolatey
245245 - name : Update Chocolatey package with dynamic checksums
246246 run : |
247- # Extract version from tag (remove 'v' prefix)
248- VERSION=${GITHUB_REF#refs/tags/v}
247+ # Extract version from tag (remove 'v' prefix if present)
248+ VERSION=${GITHUB_REF#refs/tags/}
249+ VERSION=${VERSION#v}
249250 echo "Publishing version: $VERSION"
250251
251252 # Calculate checksums for the new .exe files
@@ -268,7 +269,8 @@ jobs:
268269
269270 - name : Pack and publish Chocolatey package
270271 run : |
271- VERSION=${GITHUB_REF#refs/tags/v}
272+ VERSION=${GITHUB_REF#refs/tags/}
273+ VERSION=${VERSION#v}
272274 cd chocolatey
273275
274276 # Install choco (dotnet tool)
You can’t perform that action at this time.
0 commit comments