File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments