mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-25 05:58:35 +01:00
use dotnet nuget in cake rather than nuget.exe
(cherry picked from commit 840c528f06
)
This commit is contained in:
parent
a4aeb61acd
commit
289e35fc91
1 changed files with 4 additions and 4 deletions
|
@ -50,20 +50,20 @@ Task("Pack").IsDependentOn("Test").Does(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Push").WithCriteria(branch == "main" || branch == "release").IsDependentOn("Pack").Does(() => {
|
Task("Push").WithCriteria(branch == "main" || branch == "release").IsDependentOn("Pack").Does(() => {
|
||||||
NuGetPushSettings settings;
|
DotNetNuGetPushSettings settings;
|
||||||
if (branch == "release") {
|
if (branch == "release") {
|
||||||
settings = new NuGetPushSettings {
|
settings = new DotNetNuGetPushSettings {
|
||||||
Source = "https://api.nuget.org/v3/index.json",
|
Source = "https://api.nuget.org/v3/index.json",
|
||||||
ApiKey = EnvironmentVariable("NUGET_KEY")
|
ApiKey = EnvironmentVariable("NUGET_KEY")
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
settings = new NuGetPushSettings {
|
settings = new DotNetNuGetPushSettings {
|
||||||
Source = "https://nuget.ellpeck.de/v3/index.json",
|
Source = "https://nuget.ellpeck.de/v3/index.json",
|
||||||
ApiKey = EnvironmentVariable("BAGET_KEY")
|
ApiKey = EnvironmentVariable("BAGET_KEY")
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
settings.SkipDuplicate = true;
|
settings.SkipDuplicate = true;
|
||||||
NuGetPush(GetFiles("**/MLEM*.nupkg"), settings);
|
DotNetNuGetPush("**/MLEM*.nupkg", settings);
|
||||||
});
|
});
|
||||||
|
|
||||||
Task("Document").Does(() => {
|
Task("Document").Does(() => {
|
||||||
|
|
Loading…
Reference in a new issue