Skip to content

Commit 9423402

Browse files
author
Cédric Belin
committed
Update the "publish" task
1 parent fbad706 commit 9423402

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.cake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ Task("publish")
2525
.WithCriteria(release, @"the ""Release"" configuration must be enabled")
2626
.IsDependentOn("default")
2727
.Does(() => DotNetPack("Akismet.slnx", new() { OutputDirectory = "var" }))
28-
.Does(() => DotNetNuGetPush("var/*.nupkg", new() { ApiKey = EnvironmentVariable("NUGET_API_KEY"), Source = "https://api.nuget.org/v3/index.json" }))
28+
.Does(() => DotNetNuGetPush($"var/Belin.Akismet.{version}.nupkg", new() { ApiKey = EnvironmentVariable("NUGET_API_KEY"), Source = "https://api.nuget.org/v3/index.json" }))
29+
.Does(() => DotNetNuGetPush($"var/Belin.Akismet.{version}.nupkg", new() { ApiKey = EnvironmentVariable("GITHUB_TOKEN"), Source = "https://nuget.pkg.github.com/cedx/index.json" }))
2930
.DoesForEach(["tag", "push origin"], action => StartProcess("git", $"{action} v{version}"));
3031

3132
Task("test")

0 commit comments

Comments
 (0)