Skip to content

Commit 5225189

Browse files
committed
!deploy v0.1.0 - First release after fixes to enable passing tests in PS5.1
## 0.1.0 - Initial release to the PowerShell Gallery - Included functions are `Protect-PEMString` and `Unprotect-PEMString` - Fixed deployment issue
1 parent e91003a commit 5225189

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

psake.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,16 @@ $deployScriptBlock = {
203203
if ($versionToDeploy) {
204204
try {
205205
if ($ENV:BHBuildSystem -eq 'VSTS' -and -not [String]::IsNullOrEmpty($env:NugetApiKey)) {
206-
if ($manifest.Version.ToString() -eq $versionToDeploy.ToStrin()) {
206+
$manifestPath = Join-Path $outputModVerDir "$($env:BHProjectName).psd1"
207+
if (-not $manifest) {
208+
$manifest = Import-PowerShellDataFile -Path $manifestPath
209+
}
210+
if ($manifest.ModuleVersion.ToString() -eq $versionToDeploy.ToString()) {
207211
" Manifest is already the expected version. Skipping manifest version update"
208212
}
209213
else {
210214
" Updating module version on manifest to [$($versionToDeploy)]"
211-
Update-Metadata -Path (Join-Path $outputModVerDir "$($env:BHProjectName).psd1") -PropertyName ModuleVersion -Value $versionToDeploy -Verbose
215+
Update-Metadata -Path $manifestPath -PropertyName ModuleVersion -Value $versionToDeploy -Verbose
212216
}
213217
try {
214218
" Publishing version [$($versionToDeploy)] to PSGallery..."

0 commit comments

Comments
 (0)