From: AeonLucid Date: Thu, 22 Oct 2020 20:25:55 +0000 (+0200) Subject: Fix cake X-Git-Tag: v1.2.2~96^2~51 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=b56a55ae1a597920090183ab8059f05e27558bf3;p=rhonda%2Fimpostor.git Fix cake --- diff --git a/build.cake b/build.cake index b1cccf4..e722643 100644 --- a/build.cake +++ b/build.cake @@ -71,7 +71,10 @@ Task("Build") Configuration = configuration, }); - if ((branch == "master" || branch == "dev") && !string.IsNullOrEmpty(prNumber)) { + // Only build artifacts if; + // - branch is master/dev + // - it is not a pull request + if ((branch == "master" || branch == "dev") && string.IsNullOrEmpty(prNumber)) { // Client. ImpostorPublishNF("Impostor-Patcher", "./src/Impostor.Patcher/Impostor.Patcher.WinForms/Impostor.Patcher.WinForms.csproj");