build(ci): fix windows artifact (#176)

This commit is contained in:
Xenxo Espasandín 2024-01-06 13:46:18 +01:00 committed by GitHub
parent a44a9bf300
commit b41a9f7d54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,7 +180,7 @@ jobs:
run: |
for dir in */; do
if [[ $dir == *"windows"* ]]; then
zip -r "${dir%/}.zip" "$dir*"
cd "$dir" && zip -r "../${dir%/}.zip" . && cd ..
else
tar -czvf "${dir%/}.tar.gz" -C "$dir" .
fi