Skip to content

Commit

Permalink
Fixed deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
lipkau committed Dec 4, 2018
1 parent 411847f commit 3a72a1a
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions ConfluencePS.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,6 @@ if ($BuildTask -notin @("SetUp", "InstallDependencies")) {
Invoke-Init
}

$shouldDeploy = (
# only deploy master branch
('master' -eq $env:BHBranchName) -and
# it cannot be a PR
( -not $env:SYSTEM_PULLREQUEST_PULLREQUESTID) -and
# only deploy from VSTS
('VSTS' -eq $env:BHBuildSystem) -and
# it cannot have a commit message that contains "skip-deploy"
($env:BHCommitMessage -notlike '*skip-deploy*')
)

#region SetUp
# Synopsis: Proxy task
task Init { Invoke-Init }
Expand Down Expand Up @@ -127,7 +116,6 @@ task ShowInfo Init, GetNextVersion, {
Write-Build Gray ('Commit: {0}' -f $env:BHCommitMessage)
Write-Build Gray ('Build #: {0}' -f $env:BHBuildNumber)
Write-Build Gray ('Next Version: {0}' -f $env:NextBuildVersion)
Write-Build Gray ('Will deploy new version? {0}' -f $shouldDeploy)
Write-Build Gray '-------------------------------------------------------'
Write-Build Gray
Write-Build Gray ('PowerShell version: {0}' -f $PSVersionTable.PSVersion.ToString())
Expand Down Expand Up @@ -273,7 +261,7 @@ task Test Init, {

#region Publish
# Synopsis: Publish a new release on github and the PSGallery
task Deploy -If ($shouldDeploy) Init, PublishToGallery, TagReplository, UpdateHomepage
task Deploy Init, PublishToGallery, TagReplository, UpdateHomepage

# Synpsis: Publish the $release to the PSGallery
task PublishToGallery {
Expand Down

0 comments on commit 3a72a1a

Please sign in to comment.