Skip to content

Commit

Permalink
!deploy v0.1.0 - First release after fixes to enable passing tests in…
Browse files Browse the repository at this point in the history
… PS5.1

## 0.1.0

- Initial release to the PowerShell Gallery
- Included functions are `Protect-PEMString` and `Unprotect-PEMString`
- Fixed deployment issue
  • Loading branch information
scrthq committed Jul 7, 2019
1 parent e91003a commit 5225189
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions psake.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,16 @@ $deployScriptBlock = {
if ($versionToDeploy) {
try {
if ($ENV:BHBuildSystem -eq 'VSTS' -and -not [String]::IsNullOrEmpty($env:NugetApiKey)) {
if ($manifest.Version.ToString() -eq $versionToDeploy.ToStrin()) {
$manifestPath = Join-Path $outputModVerDir "$($env:BHProjectName).psd1"
if (-not $manifest) {
$manifest = Import-PowerShellDataFile -Path $manifestPath
}
if ($manifest.ModuleVersion.ToString() -eq $versionToDeploy.ToString()) {
" Manifest is already the expected version. Skipping manifest version update"
}
else {
" Updating module version on manifest to [$($versionToDeploy)]"
Update-Metadata -Path (Join-Path $outputModVerDir "$($env:BHProjectName).psd1") -PropertyName ModuleVersion -Value $versionToDeploy -Verbose
Update-Metadata -Path $manifestPath -PropertyName ModuleVersion -Value $versionToDeploy -Verbose
}
try {
" Publishing version [$($versionToDeploy)] to PSGallery..."
Expand Down

0 comments on commit 5225189

Please sign in to comment.