]> git.deb.at Git - rhonda/impostor.git/commitdiff
Fix cake
authorAeonLucid <aeonlucid@outlook.com>
Thu, 22 Oct 2020 20:25:55 +0000 (22:25 +0200)
committerAeonLucid <aeonlucid@outlook.com>
Thu, 22 Oct 2020 20:25:55 +0000 (22:25 +0200)
build.cake

index b1cccf4d75b01fc73e65651666a6d1f1895a83ca..e722643c1a43afddaeda1619cdf732c84de5f18d 100644 (file)
@@ -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");