Skip to content

Commit 896f2bb

Browse files
committed
build: rename plugin files to include short commit ID
1 parent ada9d60 commit 896f2bb

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/stage.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,16 @@ jobs:
104104
- name: Create SHA256 checksums for the binaries
105105
working-directory: distributions
106106
run: |
107-
for pkg in *
108-
do
109-
sha256sum "$pkg" > "$pkg.sha256"
107+
short_sha="${{ github.sha }}"
108+
short_sha="${short_sha:0:7}"
109+
# Rename plugin files to include short commit ID and create checksums
110+
for pkg in *.zip; do
111+
[ ! -f "$pkg" ] && continue
112+
new_filename="${pkg%.zip}-${short_sha}.zip"
113+
echo "Renaming $pkg to $new_filename"
114+
mv "$pkg" "$new_filename"
115+
echo "Creating checksum for $new_filename"
116+
sha256sum "$new_filename" > "$new_filename.sha256"
110117
done
111118
112119
- name: Upload packages and checksums as early-access release assets

0 commit comments

Comments
 (0)