Skip to content

Commit 2ef6021

Browse files
committed
Going to try it with Prereleases.
1 parent 27230fa commit 2ef6021

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

build.cake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,11 @@ Task("PackageUI32")
184184
.OnError(exception => Error(exception));
185185

186186
Task("DeployReleases")
187-
.WithCriteria(isRunningInGitHubActions && isMasterBranch && hasGithubToken)
187+
.WithCriteria(isRunningInGitHubActions && (isMasterBranch || isDevelopBranch) && hasGithubToken)
188188
.Does(() =>
189189
{
190-
Information($"Uploading Papercut SMTP 64-bit Release {versionInfo.FullSemVer}");
190+
var releaseType = isMasterBranch ? "Release" : "Pre-release";
191+
Information($"Uploading Papercut SMTP 64-bit {releaseType} {versionInfo.FullSemVer}");
191192

192193
var uploadParams = new VpkUploadParams
193194
{
@@ -200,7 +201,7 @@ Task("DeployReleases")
200201

201202
Velopack.UploadGithub(Context, uploadParams);
202203

203-
Information($"Uploading Papercut SMTP 32-bit Release {versionInfo.FullSemVer}");
204+
Information($"Uploading Papercut SMTP 32-bit {releaseType} {versionInfo.FullSemVer}");
204205

205206
uploadParams = new VpkUploadParams
206207
{

0 commit comments

Comments
 (0)