Skip to content

Commit

Permalink
Updated build to include entire description
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei15193 committed Jun 10, 2020
1 parent 1e36872 commit 4fc8260
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ jobs:
$packageVersion = "${majorVersion}.${minorVersion}.$($currentRevision)"
}
$description = (Select-Xml -Path ./Mup/Mup.csproj -XPath "//Project/PropertyGroup/Description/text()").Node.Data.Trim()
$description = (
(Select-Xml -Path ./Mup/Mup.csproj -XPath "//Project/PropertyGroup/Description/text()").Node.Data -split '\r?\n\r?' |
Where-Object { -not [string]::IsNullOrWhiteSpace($_) } |
Foreach-Object { $_.Trim() }
) -join '%0A%0A'
$releaseNotes = (
(Select-Xml -Path ./Mup/Mup.csproj -XPath "//Project/PropertyGroup/PackageReleaseNotes/text()").Node.Data -split '\r?\n\r?' |
Where-Object { -not [string]::IsNullOrWhiteSpace($_) } |
Expand Down

0 comments on commit 4fc8260

Please sign in to comment.