From e3bda0e2fc7700fad382cabe00aeb46f91fbb0a0 Mon Sep 17 00:00:00 2001 From: Logan Date: Fri, 13 Feb 2026 23:33:47 -0600 Subject: [PATCH] fix: rename downloaded artifacts to platform-specific names for release download-artifact preserves the original binary filename, not the artifact name. Add a rename step so release assets have descriptive platform-specific names (e.g., yellowjacket-linux-amd64). --- .github/workflows/build.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 56128ef..aa13717 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -150,11 +150,17 @@ jobs: - name: Download all artifacts uses: actions/download-artifact@v4 with: - merge-multiple: true path: ${{ github.workspace }}/artifacts - - name: List artifacts - run: find ${{ github.workspace }}/artifacts -type f + - name: Prepare release assets + working-directory: ${{ github.workspace }}/artifacts + run: | + mkdir -p release + cp yellowjacket-linux-amd64/yellowjacket release/yellowjacket-linux-amd64 + cp yellowjacket-darwin-universal/yellowjacket-darwin-universal.app.zip release/yellowjacket-darwin-universal.app.zip + cp yellowjacket-windows-amd64.exe/yellowjacket.exe release/yellowjacket-windows-amd64.exe + echo "Release assets:" + ls -lh release/ - name: Upload assets to GitHub Release uses: softprops/action-gh-release@v2 @@ -165,6 +171,6 @@ jobs: tag_name: ${{ github.event.release.tag_name }} fail_on_unmatched_files: true files: | - artifacts/yellowjacket-linux-amd64 - artifacts/yellowjacket-darwin-universal.app.zip - artifacts/yellowjacket-windows-amd64.exe + artifacts/release/yellowjacket-linux-amd64 + artifacts/release/yellowjacket-darwin-universal.app.zip + artifacts/release/yellowjacket-windows-amd64.exe