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