Skip to content

Commit 3887270

Browse files
committed
Fix NuGet versioning for release
1 parent 1f66404 commit 3887270

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/dotnet-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,17 @@ jobs:
113113

114114
- name: Set NuGet Version to Tag Number for Camera
115115
if: startsWith(github.ref, 'refs/tags/') && endsWith(github.ref, '-camera')
116-
run: echo "NugetPackageVersionCamera=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
116+
run: echo "NugetPackageVersionCamera=${GITHUB_REF#refs/tags/}" | sed 's/-camera$//' >> $GITHUB_ENV
117117
shell: bash
118118

119119
- name: Set NuGet Version to Tag Number for MediaElement
120120
if: startsWith(github.ref, 'refs/tags/') && endsWith(github.ref, '-mediaelement')
121-
run: echo "NugetPackageVersionMediaElement=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
121+
run: echo "NugetPackageVersionMediaElement=${GITHUB_REF#refs/tags/}" | sed 's/-mediaelement$//' >> $GITHUB_ENV
122122
shell: bash
123123

124124
- name: Set NuGet Version to Tag Number for Maps
125125
if: startsWith(github.ref, 'refs/tags/') && endsWith(github.ref, '-maps')
126-
run: echo "NugetPackageVersionMaps=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
126+
run: echo "NugetPackageVersionMaps=${GITHUB_REF#refs/tags/}" | sed 's/-maps$//' >> $GITHUB_ENV
127127
shell: bash
128128

129129
- name: Set NuGet Version to PR Version

0 commit comments

Comments
 (0)