Skip to content

Commit 04291ff

Browse files
authored
Merge pull request #41 from tgharold/cake-for-mc-1
Simplify the logic for Release vs Debug configs
2 parents 3343162 + 469cf1f commit 04291ff

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

build-net5.cake

+5-9
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,12 @@ else if ((useMasterReleaseStrategy && AppVeyor.Environment.Repository.Branch !=
3434
Information($"packageVersion={packageVersion}");
3535

3636
var configuration = "Release";
37-
if (!useMasterReleaseStrategy
38-
&& !AppVeyor.Environment.PullRequest.IsPullRequest
39-
&& AppVeyor.Environment.Repository.Branch == "master")
37+
if (AppVeyor.Environment.PullRequest.IsPullRequest
38+
&& (useMasterReleaseStrategy && AppVeyor.Environment.Repository.Branch != "master")
39+
&& (!useMasterReleaseStrategy && !AppVeyor.Environment.Repository.Branch.StartsWith("release/"))
40+
)
4041
{
41-
configuration = "Development";
42-
}
43-
else if (!AppVeyor.Environment.PullRequest.IsPullRequest
44-
&& AppVeyor.Environment.Repository.Branch == "development")
45-
{
46-
configuration = "QA";
42+
configuration = "Debug";
4743
}
4844
Information($"configuration={configuration}");
4945

build.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
pwsh -ExecutionPolicy RemoteSigned -File ./build.ps1
3+

0 commit comments

Comments
 (0)