Skip to content

Commit 929905e

Browse files
committed
fix version extration and interpolation
1 parent 2e97417 commit 929905e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Push the package to nuget.org
2626
run: |
2727
# Extract the version from the csproj file
28-
$VERSION=([xml] (Get-Content .\DirectNet.Net\DirectNet.Net.csproj)).Project.PropertyGroup.Version
28+
$VERSION=@(([xml] (Get-Content .\DirectNet.Net\DirectNet.Net.csproj -Encoding utf8)).Project.PropertyGroup.Version)[1]
2929
3030
# Publish the package to nuget.org
3131
dotnet nuget push ./bin/Release/DirectNet.Net.$VERSION.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.DirectNetAPIKey }}

0 commit comments

Comments
 (0)