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- # ------------------------------------------------------------------------------
2- # <auto-generated>
3- #
4- # This code was generated.
5- #
6- # - To turn off auto-generation set:
7- #
8- # [GitHubActions (AutoGenerate = false)]
9- #
10- # - To trigger manual generation invoke:
11- #
12- # nuke --generate-configuration GitHubActions_Publish --host GitHubActions
13- #
14- # </auto-generated>
15- # ------------------------------------------------------------------------------
16-
171name : Publish
182
193on :
226 - ' *'
237
248jobs :
25- windows-latest :
26- name : windows-latest
27- runs-on : windows -latest
9+ publish :
10+ name : publish
11+ runs-on : ubuntu -latest
2812 steps :
29- - uses : actions/checkout@v3
13+
14+ - uses : actions/checkout@v4
3015 with :
3116 fetch-depth : 0
32- - name : Run './build.cmd PushToNuGet'
33- run : ./build.cmd PushToNuGet
34- env :
35- NugetApiKey : ${{ secrets.NUGET_API_KEY }}
36- NugetApiUrl : ${{ secrets.NUGET_API_URL }}
37- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
17+
18+ - uses : actions/setup-dotnet@v4
19+
20+ - name : Pack
21+ run : |
22+ dotnet pack ./MediatR.Courier --configuration Release --output ./artifacts /p:Version="${GITHUB_REF_NAME}"
23+
24+ - name : Publish
25+ run : |
26+ dotnet nuget push ./artifacts/ --api-key "${{ secrets.NUGET_API_KEY }}"
Original file line number Diff line number Diff line change 5151 run : dotnet test --no-build --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
5252
5353 - name : Sonar End
54- run : dotnet dotnet-sonarscanner end /d:sonar.login ="${{ secrets.SONAR_TOKEN }}"
54+ run : dotnet dotnet-sonarscanner end /d:sonar.token ="${{ secrets.SONAR_TOKEN }}"
Original file line number Diff line number Diff line change 44 <clear />
55 <add key =" nuget.org" value =" https://api.nuget.org/v3/index.json" protocolVersion =" 3" />
66 </packageSources >
7+ <config >
8+ <add key =" defaultPushSource" value =" https://api.nuget.org/v3/index.json" />
9+ </config >
710</configuration >
You can’t perform that action at this time.
0 commit comments