Skip to content

Commit

Permalink
(build) Only push to MyGet from develop branch or tag
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead committed Apr 19, 2017
1 parent 5f7a989 commit 455e822
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/parameters.cake
Expand Up @@ -14,7 +14,7 @@ public class BuildParameters
public bool IsPullRequest { get; private set; }
public bool IsMainCakeRepo { get; private set; }
public bool IsMainCakeBranch { get; private set; }
public bool IsCoreClrBranch { get; private set; }
public bool IsDevelopCakeBranch { get; private set; }
public bool IsTagged { get; private set; }
public bool IsPublishBuild { get; private set; }
public bool IsReleaseBuild { get; private set; }
Expand Down Expand Up @@ -43,8 +43,8 @@ public class BuildParameters
{
get
{
return !IsLocalBuild && !IsPullRequest && !IsCoreClrBranch
&& IsMainCakeRepo && (IsTagged || !IsMainCakeBranch);
return !IsLocalBuild && !IsPullRequest && IsMainCakeRepo
&& (IsTagged || IsDevelopCakeBranch);
}
}

Expand Down Expand Up @@ -100,7 +100,7 @@ public class BuildParameters
IsPullRequest = buildSystem.AppVeyor.Environment.PullRequest.IsPullRequest,
IsMainCakeRepo = StringComparer.OrdinalIgnoreCase.Equals("cake-build/cake", buildSystem.AppVeyor.Environment.Repository.Name),
IsMainCakeBranch = StringComparer.OrdinalIgnoreCase.Equals("main", buildSystem.AppVeyor.Environment.Repository.Branch),
IsCoreClrBranch = StringComparer.OrdinalIgnoreCase.Equals("coreclr", buildSystem.AppVeyor.Environment.Repository.Branch),
IsDevelopCakeBranch = StringComparer.OrdinalIgnoreCase.Equals("develop", buildSystem.AppVeyor.Environment.Repository.Branch),
IsTagged = IsBuildTagged(buildSystem),
GitHub = BuildCredentials.GetGitHubCredentials(context),
Coveralls = CoverallsCredentials.GetCoverallsCredentials(context),
Expand Down

0 comments on commit 455e822

Please sign in to comment.