Skip to content

Commit 264def5

Browse files
Merge pull request erlang#11055 from kikofernandez/kiko/fix-windows-zip
otp: fixes windows powershell
2 parents e80ada2 + 1af0780 commit 264def5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/upload-windows-zip.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,17 @@ jobs:
7979
run: |
8080
$root = Get-Location
8181
82-
cd $env:BASENAME
82+
cd "$env:BASENAME"
8383
Get-ChildItem -Recurse -Filter erl.ini | Remove-Item
8484
rm Install.exe,Install.ini,Uninstall.exe
8585
$sha256 = Get-FileHash $root\otp.exe -Algorithm SHA256
8686
$sha256.Hash.ToLower() | Out-File -FilePath installer.sha256
8787
cp $root/vc_redist.exe .
8888
cp $root/erts/etc/win32/INSTALL.txt .
89-
Compress-Archive -Path * -DestinationPath $root\$env:BASENAME.zip
89+
Compress-Archive -Path * -DestinationPath $root\"$env:BASENAME.zip"
9090
9191
cd $root
92-
Expand-Archive -Path $env:BASENAME.zip -DestinationPath .\otp_test
92+
Expand-Archive -Path "$env:BASENAME.zip" -DestinationPath .\otp_test
9393
.\otp_test\bin\erl.exe +V
9494
9595
- name: Upload
@@ -98,4 +98,4 @@ jobs:
9898
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9999
INPUTS_VERSION: ${{ inputs.version }}
100100
run: |
101-
gh release upload -R $env:GITHUB_REPOSITORY --clobber OTP-$env:INPUTS_VERSION $env:BASENAME.zip
101+
gh release upload -R "$env:GITHUB_REPOSITORY" --clobber "OTP-$env:INPUTS_VERSION" "$env:BASENAME.zip"

0 commit comments

Comments
 (0)