From 896f2bba5c9af77e2ce08ae97577ede85ebb7fbb Mon Sep 17 00:00:00 2001 From: Chao Wang Date: Wed, 26 Nov 2025 13:37:16 +0800 Subject: [PATCH] build: rename plugin files to include short commit ID --- .github/workflows/stage.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index 953dfb70..6c5e7fab 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -104,9 +104,16 @@ jobs: - name: Create SHA256 checksums for the binaries working-directory: distributions run: | - for pkg in * - do - sha256sum "$pkg" > "$pkg.sha256" + short_sha="${{ github.sha }}" + short_sha="${short_sha:0:7}" + # Rename plugin files to include short commit ID and create checksums + for pkg in *.zip; do + [ ! -f "$pkg" ] && continue + new_filename="${pkg%.zip}-${short_sha}.zip" + echo "Renaming $pkg to $new_filename" + mv "$pkg" "$new_filename" + echo "Creating checksum for $new_filename" + sha256sum "$new_filename" > "$new_filename.sha256" done - name: Upload packages and checksums as early-access release assets