Skip to content

Commit bde4d22

Browse files
committed
Fix CI
1 parent aacfc21 commit bde4d22

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ConfluencePS.build.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,22 +160,22 @@ task ConvertMarkdown -Partial @ConvertMarkdown InstallPandoc, {process {
160160
# endregion
161161

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

173173
task PublishToGallery {
174-
# assert ($env:PSGalleryAPIKey) "No key for the PSGallery"
174+
assert ($env:PSGalleryAPIKey) "No key for the PSGallery"
175175

176-
# Remove-Module ConfluencePS -ErrorAction SilentlyContinue
177-
# Import-Module $releasePath\ConfluencePS\ConfluencePS.psd1 -ErrorAction Stop
178-
# Publish-Module -Name ConfluencePS -NuGetApiKey $env:PSGalleryAPIKey
176+
Remove-Module ConfluencePS -ErrorAction SilentlyContinue
177+
Import-Module $releasePath\ConfluencePS\ConfluencePS.psd1 -ErrorAction Stop
178+
Publish-Module -Name ConfluencePS -NuGetApiKey $env:PSGalleryAPIKey
179179
}
180180

181181
task UpdateHomepage {

0 commit comments

Comments
 (0)