We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f4544d commit c24dbefCopy full SHA for c24dbef
.github/workflows/publish.yml
@@ -27,9 +27,9 @@ jobs:
27
28
- name: Pack with dotnet
29
run: |
30
- arrTag=(${GITHUB_REF//\// })
31
- VERSION="${arrTag[2]}"
32
- VERSION="${VERSION#v}"
+ # Strip leading 'v' if present
+ VERSION="${GITHUB_REF_NAME#v}"
+ echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
33
PACKAGE_PATH="${GITHUB_WORKSPACE}/artifacts"
34
echo "$VERSION"
35
dotnet pack --property:PackageOutputPath=$PACKAGE_PATH --configuration Release -p:Version=$VERSION -p:ContinuousIntegrationBuild=True
0 commit comments