Skip to content

Commit 8412157

Browse files
committed
Fix Create Distribution (Windows) in release workflow
1 parent 60c1ec6 commit 8412157

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ jobs:
3737
3838
- name: Create Distribution (Windows)
3939
if: runner.os == 'Windows'
40+
shell: pwsh
4041
run: |
4142
mkdir -p dist
4243
xcopy /E /I include dist\include
4344
mkdir dist\lib
4445
mkdir dist\bin
45-
if exist build\lib\Release\slick-socket.lib copy build\lib\Release\slick-socket.lib dist\lib\
46-
if exist build\bin\Release\slick-socket-shared.dll copy build\bin\Release\slick-socket-shared.dll dist\bin\
46+
if (Test-Path build\lib\Release\slick-socket.lib) { copy build\lib\Release\slick-socket.lib dist\lib\ }
47+
if (Test-Path build\bin\Release\slick-socket-shared.dll) { copy build\bin\Release\slick-socket-shared.dll dist\bin\ }
4748
4849
- name: Create Distribution (Linux/macOS)
4950
if: runner.os == 'Linux' || runner.os == 'macOS'

0 commit comments

Comments
 (0)