Skip to content

Commit 57af64a

Browse files
committed
Handle help file name in installer workflow
1 parent e22dc32 commit 57af64a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,16 @@ jobs:
106106
run: nuget restore SayMore.sln
107107

108108
- name: Copy CHM file into DistFiles
109-
run: copy "docs\SayMoreHelp.chm" "DistFiles\SayMoreHelp.chm"
109+
shell: pwsh
110+
run: |
111+
if (Test-Path 'docs\SayMoreHelp.chm') {
112+
Copy-Item 'docs\SayMoreHelp.chm' 'DistFiles\SayMoreHelp.chm'
113+
} elseif (Test-Path 'docs\SayMore.chm') {
114+
Copy-Item 'docs\SayMore.chm' 'DistFiles\SayMoreHelp.chm'
115+
} else {
116+
Write-Error 'No CHM help file found in docs submodule.'
117+
exit 1
118+
}
110119
111120
- name: Setup MSBuild
112121
uses: microsoft/setup-msbuild@v2

0 commit comments

Comments
 (0)