Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 2d1c8a0

Browse files
committed
Fix NuGet package upload in Cake script.
1 parent d223d33 commit 2d1c8a0

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

celerity.cake

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,17 @@ Task("upload-core-nuget")
345345
.WithCriteria(configuration == "Release")
346346
.IsDependentOn("pack-core")
347347
.Does(() =>
348-
DotNetNuGetPush(
349-
nugetGlob.Pattern,
350-
new()
351-
{
352-
Source = "https://api.nuget.org/v3/index.json",
353-
ApiKey = nugetToken,
354-
SkipDuplicate = true,
355-
}));
348+
{
349+
foreach (var pkg in GetFiles(nugetGlob))
350+
DotNetNuGetPush(
351+
pkg,
352+
new()
353+
{
354+
Source = "https://api.nuget.org/v3/index.json",
355+
ApiKey = nugetToken,
356+
SkipDuplicate = true,
357+
});
358+
});
356359

357360
Task("upload-vscode-vsce")
358361
.WithCriteria(BuildSystem.GitHubActions.Environment.Workflow.Ref.StartsWith("refs/tags/v"))

0 commit comments

Comments
 (0)