|
@@ -50,7 +50,7 @@ public class Parameters
|
|
|
// CONFIGURATION
|
|
// CONFIGURATION
|
|
|
MainRepo = "https://github.com/AvaloniaUI/Avalonia";
|
|
MainRepo = "https://github.com/AvaloniaUI/Avalonia";
|
|
|
MasterBranch = "master";
|
|
MasterBranch = "master";
|
|
|
- ReleaseBranchPrefix = "release/";
|
|
|
|
|
|
|
+ ReleaseBranchPrefix = "refs/heads/release/";
|
|
|
ReleaseConfiguration = "Release";
|
|
ReleaseConfiguration = "Release";
|
|
|
MSBuildSolution = "./dirs.proj";
|
|
MSBuildSolution = "./dirs.proj";
|
|
|
|
|
|
|
@@ -64,7 +64,7 @@ public class Parameters
|
|
|
IsPullRequest = buildSystem.AppVeyor.Environment.PullRequest.IsPullRequest;
|
|
IsPullRequest = buildSystem.AppVeyor.Environment.PullRequest.IsPullRequest;
|
|
|
IsMainRepo = StringComparer.OrdinalIgnoreCase.Equals(MainRepo, context.EnvironmentVariable("BUILD_REPOSITORY_URI"));
|
|
IsMainRepo = StringComparer.OrdinalIgnoreCase.Equals(MainRepo, context.EnvironmentVariable("BUILD_REPOSITORY_URI"));
|
|
|
IsMasterBranch = StringComparer.OrdinalIgnoreCase.Equals(MasterBranch, context.EnvironmentVariable("BUILD_SOURCEBRANCHNAME"));
|
|
IsMasterBranch = StringComparer.OrdinalIgnoreCase.Equals(MasterBranch, context.EnvironmentVariable("BUILD_SOURCEBRANCHNAME"));
|
|
|
- IsReleaseBranch = context.EnvironmentVariable("BUILD_SOURCEBRANCHNAME").ToLower().StartsWith(ReleaseBranchPrefix.ToLower());
|
|
|
|
|
|
|
+ IsReleaseBranch = context.EnvironmentVariable("BUILD_SOURCEBRANCH").ToLower().StartsWith(ReleaseBranchPrefix.ToLower());
|
|
|
IsTagged = buildSystem.AppVeyor.Environment.Repository.Tag.IsTag
|
|
IsTagged = buildSystem.AppVeyor.Environment.Repository.Tag.IsTag
|
|
|
&& !string.IsNullOrWhiteSpace(buildSystem.AppVeyor.Environment.Repository.Tag.Name);
|
|
&& !string.IsNullOrWhiteSpace(buildSystem.AppVeyor.Environment.Repository.Tag.Name);
|
|
|
IsReleasable = StringComparer.OrdinalIgnoreCase.Equals(ReleaseConfiguration, Configuration);
|
|
IsReleasable = StringComparer.OrdinalIgnoreCase.Equals(ReleaseConfiguration, Configuration);
|