Added StagingModuleManifestPath for correct artifact version in filename
9cc44696
Adam Rush
committed
failed
1 changed file
build.psake.ps1
/Build/build.psake.ps1-2+3
/Build/build.psake.ps1
Add comment 24 # Staging
Add comment 25 $StagingFolder = Join-Path -Path $projectRoot -ChildPath 'Staging'
Add comment 26 $StagingModulePath = Join-Path -Path $StagingFolder -ChildPath $env:BHProjectName
Add comment 27 Plus   $StagingModuleManifestPath = Join-Path -Path $StagingModulePath -ChildPath "$($env:BHProjectName).psd1"
Add comment 27 28
Add comment 28 29 # Documentation
Add comment 29 30 $DocumentationPath = Join-Path -Path $StagingFolder -ChildPath 'Documentation'
Add comment 216 217
Add comment 217 218 # Get current manifest version
Add comment 218 219 try {
Add comment 219 Minus   $manifest = Test-ModuleManifest -Path $env:BHPSModuleManifest -ErrorAction 'Stop'
Add comment 220 Plus   $manifest = Test-ModuleManifest -Path $StagingModulePath -ErrorAction 'Stop'
Add comment 220 221 [Version]$manifestVersion = $manifest.Version
Add comment 221 222
Add comment 222 223 } catch {
Add comment 223 Minus   throw "Could not get manifest version from [$env:BHPSModuleManifest]"
Add comment 224 Plus   throw "Could not get manifest version from [$StagingModulePath]"
Add comment 224 225 }
Add comment 225 226
Add comment 226 227 # Create zip file