From cb667ebca920be27e2c1a39bcfd481fbfe98609e Mon Sep 17 00:00:00 2001 From: chuongmep <31106432+chuongmep@users.noreply.github.com> Date: Wed, 30 Aug 2023 20:40:22 +0800 Subject: [PATCH] Fix config release version on branch --- build/Build.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/Build.cs b/build/Build.cs index a361071..76fdf99 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -124,8 +124,8 @@ class Build : NukeBuild .Requires(() => GitHubToken) .Requires(() => GitRepository) .Requires(() => GitVersion) - // .OnlyWhenStatic(() => GitRepository.IsOnMainOrMasterBranch()) - .OnlyWhenStatic(() => IsLocalBuild) // Just run this on the server + .OnlyWhenStatic(() => GitRepository.IsOnMainOrMasterBranch()) + .OnlyWhenStatic(() => IsServerBuild) // Just run this on the server .TriggeredBy(CreateInstaller) .Executes(() => {