@@ -35,17 +35,6 @@ if ($BuildTask -notin @("SetUp", "InstallDependencies")) {
35
35
Invoke-Init
36
36
}
37
37
38
- $shouldDeploy = (
39
- # only deploy master branch
40
- (' master' -eq $env: BHBranchName ) -and
41
- # it cannot be a PR
42
- ( -not $env: SYSTEM_PULLREQUEST_PULLREQUESTID ) -and
43
- # only deploy from VSTS
44
- (' VSTS' -eq $env: BHBuildSystem ) -and
45
- # it cannot have a commit message that contains "skip-deploy"
46
- ($env: BHCommitMessage -notlike ' *skip-deploy*' )
47
- )
48
-
49
38
# region SetUp
50
39
# Synopsis: Proxy task
51
40
task Init { Invoke-Init }
@@ -127,7 +116,6 @@ task ShowInfo Init, GetNextVersion, {
127
116
Write-Build Gray (' Commit: {0}' -f $env: BHCommitMessage )
128
117
Write-Build Gray (' Build #: {0}' -f $env: BHBuildNumber )
129
118
Write-Build Gray (' Next Version: {0}' -f $env: NextBuildVersion )
130
- Write-Build Gray (' Will deploy new version? {0}' -f $shouldDeploy )
131
119
Write-Build Gray ' -------------------------------------------------------'
132
120
Write-Build Gray
133
121
Write-Build Gray (' PowerShell version: {0}' -f $PSVersionTable.PSVersion.ToString ())
@@ -273,7 +261,7 @@ task Test Init, {
273
261
274
262
# region Publish
275
263
# Synopsis: Publish a new release on github and the PSGallery
276
- task Deploy - If ( $shouldDeploy ) Init, PublishToGallery, TagReplository, UpdateHomepage
264
+ task Deploy Init, PublishToGallery, TagReplository, UpdateHomepage
277
265
278
266
# Synpsis: Publish the $release to the PSGallery
279
267
task PublishToGallery {
0 commit comments