1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-26 06:28:35 +01:00

renamed master to main

This commit is contained in:
Ell 2020-11-07 00:52:04 +01:00
parent f6c4d83775
commit 97932daf8f

View file

@ -4,7 +4,7 @@
// this is the upcoming version, for prereleases // this is the upcoming version, for prereleases
var version = Argument("version", "4.2.0"); var version = Argument("version", "4.2.0");
var target = Argument("target", "Default"); var target = Argument("target", "Default");
var branch = Argument("branch", "master"); var branch = Argument("branch", "main");
var config = Argument("configuration", "Release"); var config = Argument("configuration", "Release");
Task("Prepare").Does(() => { Task("Prepare").Does(() => {
@ -38,7 +38,7 @@ Task("Pack").IsDependentOn("Build").Does(() => {
DotNetCorePack(project.FullPath, settings); DotNetCorePack(project.FullPath, settings);
}); });
Task("Push").WithCriteria(branch == "master" || branch == "release").IsDependentOn("Pack").Does(() => { Task("Push").WithCriteria(branch == "main" || branch == "release").IsDependentOn("Pack").Does(() => {
NuGetPushSettings settings; NuGetPushSettings settings;
if (branch == "release") { if (branch == "release") {
settings = new NuGetPushSettings { settings = new NuGetPushSettings {