File tree Expand file tree Collapse file tree 3 files changed +13
-15
lines changed
Expand file tree Collapse file tree 3 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 1- name : Publish to NuGet
1+ name : Release
22
33on :
4- push :
5- branches :
6- - master
7-
8- env :
9- NuGetDirectory : ${{ github.workspace}}/nuget
4+ release :
5+ types : [published]
6+ tags :
7+ - " [0-9]+.[0-9]+.[0-9]+"
8+ - " [0-9]+.[0-9]+.[0-9]+-*"
109
1110jobs :
1211 build-and-publish :
2827
2928 - name : Test
3029 run : dotnet test --no-restore --verbosity normal
31-
30+
3231 - name : Pack projects
33- run : dotnet pack --configuration Release --output ${{ env.NuGetDirectory }}
32+ run : dotnet pack --no-build -c Release -o nupkg /p:PackageVersion= ${{ github.event.release.tag_name }}
3433
35- - name : Publish to NuGet.org
36- run : |
37- nuget push ${{ env.NuGetDirectory }}/ToolBX.Eloquentest.*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} -SkipDuplicate
34+ - name : Publish to NuGet
35+ run : dotnet nuget push ./nupkg/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
Original file line number Diff line number Diff line change 77 </PropertyGroup >
88
99 <ItemGroup >
10- <PackageReference Include =" ToolBX.AutoInject" Version =" 2.2.0-beta6 " />
10+ <PackageReference Include =" ToolBX.AutoInject" Version =" 2.2.0-beta7 " />
1111 <PackageReference Include =" ToolBX.NetAbstractions" Version =" 2.2.0-beta1" />
1212 </ItemGroup >
1313
Original file line number Diff line number Diff line change 3434 <PackageReference Include =" Microsoft.Extensions.Options" Version =" 8.0.0" />
3535 <PackageReference Include =" Moq" Version =" 4.20.70" />
3636 <PackageReference Include =" MSTest.TestFramework" Version =" 3.1.1" />
37- <PackageReference Include =" ToolBX.AutoInject" Version =" 2.2.0-beta6 " />
38- <PackageReference Include =" ToolBX.Reflection4Humans.ValueEquality" Version =" 2.2.0-beta8 " />
37+ <PackageReference Include =" ToolBX.AutoInject" Version =" 2.2.0-beta7 " />
38+ <PackageReference Include =" ToolBX.Reflection4Humans.ValueEquality" Version =" 2.2.0-beta9 " />
3939 </ItemGroup >
4040
4141</Project >
You can’t perform that action at this time.
0 commit comments