Refactor file compression logic in release workflow
This commit is contained in:
parent
2df57e6249
commit
7940e010e0
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@ -75,7 +75,8 @@ jobs:
|
|||||||
for file in assets/*/*/*; do
|
for file in assets/*/*/*; do
|
||||||
if [ -f "$file" ]; then
|
if [ -f "$file" ]; then
|
||||||
chmod +x "$file"
|
chmod +x "$file"
|
||||||
zip -jr "$file.zip" "$file"
|
export fileWithoutExt=${file%.*}
|
||||||
|
zip -jr "$fileWithoutExt.zip" "$file"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user