Skip to content

Commit 8187976

Browse files
Push to NuGet without wildcards (luigiberrettini#306 closes luigiberrettini#305)
1 parent 6b24a99 commit 8187976

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/scripts/cake.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,9 @@ int ApplyRevisionBounds(int number)
285285
}
286286
Information($"NuGet source: {nuGetSource}");
287287

288-
var packageSearchPattern = System.IO.Path.Combine(artifactsDir, "*.nupkg");
288+
var packages = new DirectoryInfo(artifactsDir).GetFiles("*.nupkg").ToList();
289289
var nuGetPushSettings = new DotNetNuGetPushSettings { Source = nuGetSource, ApiKey = nuGetApiKey };
290-
DotNetNuGetPush(packageSearchPattern, nuGetPushSettings);
290+
packages.ForEach(x => DotNetNuGetPush(x.FullName, nuGetPushSettings));
291291
});
292292

293293
Task("ZipArtifacts")

0 commit comments

Comments
 (0)