diff --git a/MediatR.Courier.Build/Nuget.cs b/MediatR.Courier.Build/Nuget.cs index 94a9346..748c84c 100644 --- a/MediatR.Courier.Build/Nuget.cs +++ b/MediatR.Courier.Build/Nuget.cs @@ -1,5 +1,6 @@ using Nuke.Common; using Nuke.Common.Tools.DotNet; +using Nuke.Common.Utilities.Collections; using static Nuke.Common.Tools.DotNet.DotNetTasks; using static System.IO.Directory; @@ -14,7 +15,7 @@ sealed partial class Build .Requires(() => NugetApiKey) .Executes(() => EnumerateFiles(ArtifactsDirectory, "*.nupkg", SearchOption.AllDirectories) - .SelectMany(x => + .ForEach(x => DotNetNuGetPush(s => s .SetTargetPath(x) .SetSource(NugetApiUrl)