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 2e97417 commit 929905eCopy full SHA for 929905e
.github/workflows/directnet-nuget-publish.yaml
@@ -25,7 +25,7 @@ jobs:
25
- name: Push the package to nuget.org
26
run: |
27
# Extract the version from the csproj file
28
- $VERSION=([xml] (Get-Content .\DirectNet.Net\DirectNet.Net.csproj)).Project.PropertyGroup.Version
+ $VERSION=@(([xml] (Get-Content .\DirectNet.Net\DirectNet.Net.csproj -Encoding utf8)).Project.PropertyGroup.Version)[1]
29
30
# Publish the package to nuget.org
31
dotnet nuget push ./bin/Release/DirectNet.Net.$VERSION.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.DirectNetAPIKey }}
0 commit comments