Refactor file compression logic in release workflow

This commit is contained in:
naiba 2024-09-30 20:49:51 +08:00
parent 2df57e6249
commit 7940e010e0

View File

@ -75,7 +75,8 @@ jobs:
for file in assets/*/*/*; do
if [ -f "$file" ]; then
chmod +x "$file"
zip -jr "$file.zip" "$file"
export fileWithoutExt=${file%.*}
zip -jr "$fileWithoutExt.zip" "$file"
fi
done