Skip to content

Commit b40c034

Browse files
committed
corrected tag filtering
1 parent 62851de commit b40c034

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build-aot.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build AOT Executables
33
on:
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)

0 commit comments

Comments
 (0)