From b56a55ae1a597920090183ab8059f05e27558bf3 Mon Sep 17 00:00:00 2001 From: AeonLucid Date: Thu, 22 Oct 2020 22:25:55 +0200 Subject: [PATCH] Fix cake --- build.cake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"); -- 2.39.5