Skip to content

Commit 0eef762

Browse files
committed
f
1 parent 54fad0b commit 0eef762

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,17 @@ jobs:
8585
echo "Processing directory: $dir"
8686
bin=$(ls "$dir")
8787
echo "Found binary: $bin in $dir"
88-
# trim dir/ prefix from $dir
8988
dir_trimmed=$(echo "$dir" | sed 's/^dist\///')
9089
echo "Copying $dir/$bin to dist/final/$bin-$dir_trimmed"
9190
cp "$dir/$bin" "dist/final/$bin-$dir_trimmed"
9291
fi
9392
done
93+
# Gzip each binary in dist/final
94+
for file in dist/final/*; do
95+
if [ -f "$file" ]; then
96+
gzip -c "$file" > "$file.gz"
97+
fi
98+
done
9499
95100
- name: Create GitHub Release
96101
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)