@@ -35,17 +35,6 @@ if ($BuildTask -notin @("SetUp", "InstallDependencies")) {
3535 Invoke-Init
3636}
3737
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-
4938# region SetUp
5039# Synopsis: Proxy task
5140task Init { Invoke-Init }
@@ -127,7 +116,6 @@ task ShowInfo Init, GetNextVersion, {
127116 Write-Build Gray (' Commit: {0}' -f $env: BHCommitMessage )
128117 Write-Build Gray (' Build #: {0}' -f $env: BHBuildNumber )
129118 Write-Build Gray (' Next Version: {0}' -f $env: NextBuildVersion )
130- Write-Build Gray (' Will deploy new version? {0}' -f $shouldDeploy )
131119 Write-Build Gray ' -------------------------------------------------------'
132120 Write-Build Gray
133121 Write-Build Gray (' PowerShell version: {0}' -f $PSVersionTable.PSVersion.ToString ())
@@ -273,7 +261,7 @@ task Test Init, {
273261
274262# region Publish
275263# 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
277265
278266# Synpsis: Publish the $release to the PSGallery
279267task PublishToGallery {
0 commit comments