Skip to content

Commit 93e94a7

Browse files
committed
Include MUIs
1 parent ed537ff commit 93e94a7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,28 @@ jobs:
7777
msbuild EasySFTP.sln /p:Configuration=Release /p:Platform=x64
7878
7979
- name: Prepare artifacts directory
80+
shell: pwsh
8081
run: |
8182
mkdir dist
8283
mkdir dist\x64
84+
$PSNativeCommandUseErrorActionPreference = $true
8385
8486
copy bin\Win32\Release\*.exe dist\
8587
copy bin\Win32\Release\*.dll dist\
88+
$PSNativeCommandUseErrorActionPreference = $false
89+
robocopy bin\Win32\Release dist /S /E /IF *.mui
90+
if ($global:LASTEXITCODE -le 7) { $global:LASTEXITCODE = 0 } else { throw "Robocopy error: $global:LASTEXITCODE" }
91+
$PSNativeCommandUseErrorActionPreference = $true
8692
copy EasySFTP.txt dist\
8793
copy license.txt dist\
8894
copy README.md dist\
8995
copy CHANGELOG.md dist\
9096
9197
copy bin\x64\Release\*.exe dist\x64\
9298
copy bin\x64\Release\*.dll dist\x64\
99+
$PSNativeCommandUseErrorActionPreference = $false
100+
robocopy bin\x64\Release dist\x64 /S /E /IF *.mui
101+
if ($global:LASTEXITCODE -le 7) { $global:LASTEXITCODE = 0 } else { throw "Robocopy error: $global:LASTEXITCODE" }
93102
94103
- name: Upload artifacts
95104
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)