File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1616
1717 env :
1818 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19+ NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
1920 CHOCOLATEY_API_KEY : ${{ secrets.CHOCOLATEY_API_KEY }}
2021 steps :
2122 -
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public override async Task RunAsync(BuildContext context)
4343 if ( context . IsStableRelease || context . IsTaggedPreRelease )
4444 {
4545 context . StartGroup ( "Publishing to Nuget.org" ) ;
46- var apiKey = await GetNugetApiKey ( context ) ;
46+ var apiKey = context . Credentials ? . Nuget ? . ApiKey ;
4747 if ( string . IsNullOrEmpty ( apiKey ) )
4848 {
4949 throw new InvalidOperationException ( "Could not resolve NuGet org API key." ) ;
@@ -52,6 +52,8 @@ public override async Task RunAsync(BuildContext context)
5252 PublishToNugetRepo ( context , apiKey , Constants . NugetOrgUrl ) ;
5353 context . EndGroup ( ) ;
5454 }
55+
56+ await Task . CompletedTask ;
5557 }
5658
5759 private static void PublishToNugetRepo ( BuildContext context , string apiKey , string apiUrl )
You can’t perform that action at this time.
0 commit comments