Skip to content

Commit

Permalink
new repo-devRepo logic
Browse files Browse the repository at this point in the history
  • Loading branch information
buldo committed Mar 15, 2023
1 parent c6f62de commit 68bbbd9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 68bbbd9

Please sign in to comment.