File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 25
25
- name : Push the package to nuget.org
26
26
run : |
27
27
# Extract the version from the csproj file
28
- VERSION=$(grep -Eoi "<version>([[:digit:]\.]+)</version>" DirectNet.Net/ DirectNet.Net.csproj | sed -n 's:.*<Version>\(.*\)</Version>.*:\1:p')
28
+ $ VERSION=([xml] (Get-Content .\ DirectNet.Net\ DirectNet.Net.csproj)).Project.PropertyGroup.Version
29
29
30
30
# Publish the package to nuget.org
31
31
dotnet nuget push ./bin/Release/DirectNet.Net.$VERSION.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.DirectNetAPIKey }}
Original file line number Diff line number Diff line change 7
7
<GeneratePackageOnBuild >true</GeneratePackageOnBuild >
8
8
</PropertyGroup >
9
9
10
- <PropertyGroup >
10
+ <PropertyGroup >
11
11
<PackageId >DirectNet.Net</PackageId >
12
12
<Version >1.0.0</Version >
13
13
<Authors >Frédéric Jacques</Authors >
You can’t perform that action at this time.
0 commit comments