Skip to content

Commit 829022b

Browse files
committed
build: rename plugin files to include short commit ID
1 parent ada9d60 commit 829022b

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/stage.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,15 @@ 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 }:0:7}"
108+
# Rename plugin files to include short commit ID and create checksums
109+
for pkg in *.zip; do
110+
[ ! -f "$pkg" ] && continue
111+
new_pkg="${pkg%.zip}-${short_sha}.zip"
112+
echo "Renaming $pkg to $new_pkg"
113+
mv "$pkg" "$new_pkg"
114+
echo "Creating checksum for $new_pkg"
115+
sha256sum "$new_pkg" > "$new_pkg.sha256"
110116
done
111117
112118
- name: Upload packages and checksums as early-access release assets

0 commit comments

Comments
 (0)