Skip to content

Commit 24e3aa2

Browse files
committed
Fix for package version
1 parent 1b89241 commit 24e3aa2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ jobs:
1717

1818
- name: .NET build
1919
run: |
20-
echo Version is ${VERSION:1}
21-
dotnet msbuild -t:restore,build,pack -p:Configuration=Release -p:Version=${VERSION:1} FINT.Model.Resource.sln
20+
VERSION=${TAG_NAME:1}
21+
echo Version is $VERSION
22+
dotnet msbuild -t:restore,build,pack -p:Configuration=Release -p:Version=$VERSION -p:PackageVersion=$VERSION FINT.Model.Resource.sln
2223
env:
23-
VERSION: ${{github.event.release.tag_name}}
24+
TAG_NAME: ${{github.event.release.tag_name}}
2425

2526
- name: Publish new release to NuGet
2627
run: |

0 commit comments

Comments
 (0)