Skip to content

Commit

Permalink
Fix Build Pipeline (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
PlagueHO authored Nov 13, 2020
2 parents fdd3777 + 3ff0762 commit f2dc1e2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fix build problems preventing help from being compiled and added
to the module.

### Changed

- Update sample labs for Windows Server 2019 to use latest
Expand Down
15 changes: 11 additions & 4 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,20 @@ BuildWorkflow:
to load YamlDotNet.dll which conflicts with one loaded by
Module-Builder.
#>
if ([System.String]::IsNullOrEmpty($ModuleVersion))
if ([System.String]::IsNullOrEmpty($ENV:ModuleVersion))
{
$ModuleVersion = '0.0.1'
Write-Host -Object 'ModuleVersion environment variable is not defined.'
$moduleVersion = ($BuildModuleOutput | Join-Path -ChildPath $ProjectName | Get-ChildItem -Attributes D | Sort-Object -Property Name)[0].Name
}
else
{
$moduleVersion = (($ENV:ModuleVersion -Split '-') -Split '\+')[0]
}
Write-Host -Object "Compiling help for version $moduleVersion."
$outputPath = "$BuildModuleOutput\$ProjectName\$(($ModuleVersion -Split '-')[0])"
$execute = "New-ExternalHelp -Path '$ProjectPath\docs' -OutputPath '$OutputPath' -Force"
$outputPath = "$BuildModuleOutput\$ProjectName\$moduleVersion"
$execute = "New-ExternalHelp -Path '$ProjectPath\docs' -OutputPath '$outputPath' -Force"
if ($IsCoreCLR)
{
Expand Down

0 comments on commit f2dc1e2

Please sign in to comment.