File tree Expand file tree Collapse file tree
src/RedGuides.Client/Updates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 user : ${{ secrets.NUGET_USER }} # your nuget.org username (profile name), NOT your email
4949
5050 - name : Push to nuget.org
51- run : dotnet nuget push "artifacts/*.nupkg" --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
51+ shell : pwsh
52+ run : |
53+ Get-ChildItem artifacts -Filter *.nupkg | ForEach-Object {
54+ dotnet nuget push $_.FullName --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
55+ }
Original file line number Diff line number Diff line change @@ -137,11 +137,14 @@ private void CaptureEntitlement(HttpResponseMessage response)
137137 {
138138 var entitlement = EntitlementInfo . FromResponse ( response ) ;
139139 _lastEntitlement = entitlement ;
140- _logger . LogDebug (
141- "Entitlement={State} canRenew={CanRenew}" ,
142- entitlement . State ?? "?" ,
143- entitlement . CanRenew
144- ) ;
140+ if ( _logger . IsEnabled ( LogLevel . Debug ) )
141+ {
142+ _logger . LogDebug (
143+ "Entitlement={State} canRenew={CanRenew}" ,
144+ entitlement . State ?? "?" ,
145+ entitlement . CanRenew
146+ ) ;
147+ }
145148 }
146149
147150 /// <summary>Distinguishes "up to date" from "not entitled to updates."</summary>
You can’t perform that action at this time.
0 commit comments