Skip to content

Commit

Permalink
Push to NuGet without wildcards (#306 closes #305)
Browse files Browse the repository at this point in the history
  • Loading branch information
luigiberrettini authored May 29, 2022
1 parent 6b24a99 commit 8187976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/scripts/cake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ int ApplyRevisionBounds(int number)
}
Information($"NuGet source: {nuGetSource}");

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

Task("ZipArtifacts")
Expand Down

0 comments on commit 8187976

Please sign in to comment.