From 840c528f0673c11deae814533e7a7cde62e95bbb Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 10 Jul 2023 17:33:45 +0200 Subject: [PATCH] use dotnet nuget in cake rather than nuget.exe --- build.cake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.cake b/build.cake index 7cdf8b1..1c15fa8 100644 --- a/build.cake +++ b/build.cake @@ -50,20 +50,20 @@ Task("Pack").IsDependentOn("Test").Does(() => { }); Task("Push").WithCriteria(branch == "main" || branch == "release").IsDependentOn("Pack").Does(() => { - NuGetPushSettings settings; + DotNetNuGetPushSettings settings; if (branch == "release") { - settings = new NuGetPushSettings { + settings = new DotNetNuGetPushSettings { Source = "https://api.nuget.org/v3/index.json", ApiKey = EnvironmentVariable("NUGET_KEY") }; } else { - settings = new NuGetPushSettings { + settings = new DotNetNuGetPushSettings { Source = "https://nuget.ellpeck.de/v3/index.json", ApiKey = EnvironmentVariable("BAGET_KEY") }; } settings.SkipDuplicate = true; - NuGetPush(GetFiles("**/MLEM*.nupkg"), settings); + DotNetNuGetPush("**/MLEM*.nupkg", settings); }); Task("Document").Does(() => {