Skip to content

Commit 7ef1d94

Browse files
authored
Ensure we pass the Version property- this will both set the package metadata version and the assembly version. (#53)
1 parent 91bb6b8 commit 7ef1d94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish-nuget-packages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
arrTag=(${GITHUB_REF//\// })
1818
VERSION="${arrTag[2]}"
1919
echo "Version: $VERSION"
20-
dotnet pack src/prometheus-net.DotNetRuntime --include-symbols -c "Release" -p:PackageVersion=$VERSION --output "build/"
20+
dotnet pack src/prometheus-net.DotNetRuntime --include-symbols -c "Release" -p:Version=$VERSION --output "build/"
2121
dotnet nuget push "build/prometheus-net.DotNetRuntime.*.symbols.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s "https://api.nuget.org/v3/index.json" -n true

0 commit comments

Comments
 (0)