From 4035f2dc23b4b5d4f8042633b9255f1af5f1bd85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 9 Nov 2025 04:46:37 +0100 Subject: [PATCH] Fix release workflow to upload platform-specific binary names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously all binaries were uploaded with the same name 'piglet', causing them to overwrite each other. Now each binary is renamed to include the target platform (e.g., piglet-x86_64-unknown-linux-gnu) before uploading. This ensures all 4 platform binaries are available in the release. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12c1126..78efff0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -151,11 +151,14 @@ jobs: if: matrix.os == 'macos-latest' run: strip target/${{ matrix.target }}/release/piglet + - name: Rename binary + run: | + cp target/${{ matrix.target }}/release/piglet piglet-${{ matrix.target }} + - name: Upload release binary uses: softprops/action-gh-release@v1 with: - files: target/${{ matrix.target }}/release/piglet - name: piglet-${{ matrix.target }} + files: piglet-${{ matrix.target }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}