Skip to content

Commit f83f605

Browse files
committed
Render release notes from temp file
1 parent d63c71d commit f83f605

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/build-test-installer-release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,25 @@ jobs:
136136
Write-Error "Expected $releaseNotesPath to exist."
137137
exit 1
138138
}
139+
139140
$content = Get-Content $releaseNotesPath -Raw
140141
$date = Get-Date -Format 'd MMMM yyyy'
141142
$content = $content -replace '_VERSION_', $env:Version
142143
$content = $content -replace '_DATE_', $date
143-
Set-Content $releaseNotesPath $content -Encoding UTF8
144-
New-Item -ItemType Directory -Path (Split-Path $outputHtml) -Force | Out-Null
144+
145+
$tempFile = Join-Path $env:TEMP 'ReleaseNotes_processed.md'
146+
Set-Content $tempFile $content -Encoding UTF8
147+
148+
$outputDir = Split-Path $outputHtml
149+
New-Item -ItemType Directory -Path $outputDir -Force | Out-Null
150+
145151
$pandoc = Get-Command pandoc -ErrorAction SilentlyContinue
146152
if (-not $pandoc) {
147153
Write-Error "pandoc.exe not found on PATH."
148154
exit 1
149155
}
150-
& $pandoc.Path $releaseNotesPath -o $outputHtml --standalone
156+
157+
& $pandoc.Path $tempFile -o $outputHtml --standalone
151158
152159
- name: Build installer
153160
run: msbuild build\SayMore.proj /t:Installer /p:Configuration=$env:Configuration /p:Version=$env:Version /m

0 commit comments

Comments
 (0)