Skip to content

Commit 5a4d480

Browse files
author
Cédric Belin
committed
Update the "publish" task [skip ci]
1 parent 19f71ba commit 5a4d480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.cake

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

3232
Task("test")
3333
.Description("Runs the test suite.")

0 commit comments

Comments
 (0)