From 2b85352ca4f16be3216256ecfa3d33f648474e7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurai=20Andr=C3=A1s?= Date: Fri, 3 Mar 2023 08:56:23 +0100 Subject: [PATCH] fix push task not enumerating files --- MediatR.Courier.Build/Nuget.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)