File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Release to NuGet
1+ name : nuget
22
33on :
44 release :
55 types : [published]
66
7+
78jobs :
89 build :
910 runs-on : windows-latest
1011 timeout-minutes : 5
12+
1113 steps :
12- - name : Checkout
13- uses : actions/checkout@v2
14- - name : Setup .NET SDK
15- uses : actions/setup-dotnet@v1
16- - name : Build
17- run : dotnet build -c Release
18- - name : Test
19- run : dotnet test -c Release --no-build
20- - name : Pack nugets
21- run : dotnet pack -c Release --no-build --output .
22- - name : Push to NuGet
23- run : dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
14+ - uses : actions/checkout@v2
15+
16+ - name : setup-msbuild
17+ uses : microsoft/setup-msbuild@v1.3.1
18+
19+ - name : Setup NuGet.exe for use with actions
20+ uses : NuGet/setup-nuget@v1.2.0
21+
22+ - name : Build
23+ run : dotnet build -c Release
24+ - name : Test
25+ run : dotnet test -c Release --no-build
26+ - name : Pack nugets
27+ run : dotnet pack -c Release --no-build --output .
28+ - name : Push to NuGet
29+ run : dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments