Skip to content

Commit

Permalink
Hopefully 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 3b05da9 commit f13cd07
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions novadrop.cake
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,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 f13cd07

Please sign in to comment.