From 805b9c3e8dd6dc912fd0692c7d88735e635db943 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 15 Jan 2025 18:48:51 -0800 Subject: [PATCH] refac --- .github/workflows/build.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0be94a3..bbf65f3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -100,9 +100,15 @@ jobs: uses: actions/download-artifact@v3 - name: Rename Artifacts with SHA run: | + # Rename .zip files for Linux/macOS builds for file in *.zip; do mv "$file" "${file%.zip}-${{ steps.slug.outputs.sha8 }}.zip" done + + # Rename .exe files for Windows builds + for file in *.exe; do + mv "$file" "${file%.exe}-${{ steps.slug.outputs.sha8 }}.exe" + done - name: Create Release id: create_release uses: softprops/action-gh-release@v1 @@ -114,4 +120,5 @@ jobs: draft: false prerelease: false files: | - **/*.zip \ No newline at end of file + **/*.zip + **/*.exe \ No newline at end of file