Skip to content

Commit

Permalink
build: add rfetry for push nuget package
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi committed Jul 10, 2024
1 parent 896fb8a commit cb7fc2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ await ExecuteCommandAsync(
// push nuget packages
foreach (var file in Directory.GetFiles("./artifacts/packages/", "*.nupkg"))
{
await ExecuteCommandAsync($"dotnet nuget push {file} -k {apiKey} --skip-duplicate", cancellationToken);
await RetryHelper.TryInvokeAsync(() => ExecuteCommandAsync($"dotnet nuget push {file} -k {apiKey} --skip-duplicate", cancellationToken), cancellationToken: cancellationToken);
}
}))
.WithTask("Default", b => b.WithDependency("hello").WithDependency("pack"))
Expand Down

0 comments on commit cb7fc2a

Please sign in to comment.