Skip to content

Commit 9cfc425

Browse files
committed
update release job.
1 parent 961ef59 commit 9cfc425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ jobs:
159159
done
160160
161161
if [ "$GOOS" = "windows" ]; then
162-
powershell -NoLogo -NoProfile -Command "Compress-Archive -Path '$(pwd)/${root}/*' -DestinationPath '$(pwd)/dist/packages/${base}.zip' -Force"
162+
powershell -NoLogo -NoProfile -Command "\$source = Join-Path (Get-Location) '${root}'; \$destination = Join-Path (Get-Location) 'dist/packages/${base}.zip'; Compress-Archive -Path (Join-Path \$source '*') -DestinationPath \$destination -Force"
163163
else
164164
tar -C "dist/archive" -czf "dist/packages/${base}.tar.gz" "${base}"
165165
fi

0 commit comments

Comments
 (0)