Skip to content

Commit

Permalink
Fix NuGet package upload in Cake script.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Dec 13, 2023
1 parent d1aef90 commit 9e29fd7
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions cathode.cake
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,16 @@ Task("upload-core-nuget")
.WithCriteria(configuration == "Release")
.IsDependentOn("pack-core")
.Does(() =>
DotNetNuGetPush(
nugetGlob.Pattern,
new()
{
Source = "https://api.nuget.org/v3/index.json",
ApiKey = nugetToken,
SkipDuplicate = true,
}));
{
foreach (var pkg in GetFiles(nugetGlob))
DotNetNuGetPush(
pkg,
new()
{
Source = "https://api.nuget.org/v3/index.json",
ApiKey = nugetToken,
SkipDuplicate = true,
});
});
RunTarget(target);

0 comments on commit 9e29fd7

Please sign in to comment.