1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-16 06:08:46 +02:00

use dotnet nuget in cake rather than nuget.exe

This commit is contained in:
Ell 2023-07-10 17:33:45 +02:00
parent 053ad5967b
commit 840c528f06

View file

@ -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(() => {