diff --git a/build/Build.cs b/build/Build.cs index 3700c20..e80f311 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -175,17 +175,7 @@ protected override void OnBuildInitialized() .DependsOn(DebPack) .Executes(() => { - string repoName; - if (string.Equals(GitVersion.BranchName, "master", StringComparison.InvariantCultureIgnoreCase) || - string.Equals(GitVersion.BranchName, "main", StringComparison.InvariantCultureIgnoreCase)) - { - repoName = Repo; - } - else - { - repoName = DevRepo; - } - + var repoName = string.IsNullOrWhiteSpace(MinVer.MinVerPreRelease) ? Repo : DevRepo; foreach (var debFile in DebBuildPath.GlobFiles("*.deb")) { Cloudsmith($"push deb openhd/{repoName}/any-distro/any-version {debFile.Name}", DebBuildPath);