Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lipkau committed Jan 1, 2018
1 parent aacfc21 commit bde4d22
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ConfluencePS.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -160,22 +160,22 @@ task ConvertMarkdown -Partial @ConvertMarkdown InstallPandoc, {process {
# endregion

# region publish
task Deploy <# -If (
task Deploy -If (
# Only deploy if the master branch changes
$env:APPVEYOR_REPO_BRANCH -eq 'master' -and
# Do not deploy if this is a pull request (because it hasn't been approved yet)
(-not ($env:APPVEYOR_PULL_REQUEST_NUMBER)) -and
# Do not deploy if the commit contains the string "skip-deploy"
# Meant for major/minor version publishes with a .0 build/patch version (like 2.1.0)
$env:APPVEYOR_REPO_COMMIT_MESSAGE -notlike '*skip-deploy*'
) #> PublishToGallery, UpdateHomepage
) PublishToGallery, UpdateHomepage

task PublishToGallery {
# assert ($env:PSGalleryAPIKey) "No key for the PSGallery"
assert ($env:PSGalleryAPIKey) "No key for the PSGallery"

# Remove-Module ConfluencePS -ErrorAction SilentlyContinue
# Import-Module $releasePath\ConfluencePS\ConfluencePS.psd1 -ErrorAction Stop
# Publish-Module -Name ConfluencePS -NuGetApiKey $env:PSGalleryAPIKey
Remove-Module ConfluencePS -ErrorAction SilentlyContinue
Import-Module $releasePath\ConfluencePS\ConfluencePS.psd1 -ErrorAction Stop
Publish-Module -Name ConfluencePS -NuGetApiKey $env:PSGalleryAPIKey
}

task UpdateHomepage {
Expand Down

0 comments on commit bde4d22

Please sign in to comment.