From 15c22e34e8832397fbd15b134f59c92ee09dca63 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 11 Nov 2025 13:39:59 +0000 Subject: [PATCH] Fix duplicate asset upload in release workflow - Standalone binaries (pulse-sensor-proxy-*, pulse-host-agent-*) were matching both binaries AND .sha256 files - .sha256 files already uploaded in 'Upload checksums.txt first' step - gh release upload fails when same asset uploaded twice - Fix: Use explicit loop to exclude .sha256, .tar.gz, and .zip extensions from standalone binary upload Error was: asset under the same name already exists: [pulse-sensor-proxy-linux-386.sha256 ...] Related to #671 (automated release workflow) --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fec8238..acf04a9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -232,8 +232,12 @@ jobs: # Upload standalone binaries (for direct download by installers) echo "Uploading standalone binaries..." - gh release upload "${TAG}" release/pulse-sensor-proxy-* - gh release upload "${TAG}" release/pulse-host-agent-* + # Upload binaries without .sha256 files (those were already uploaded) + for file in release/pulse-sensor-proxy-* release/pulse-host-agent-*; do + if [[ ! "$file" =~ \.sha256$ ]] && [[ ! "$file" =~ \.tar\.gz$ ]] && [[ ! "$file" =~ \.zip$ ]]; then + gh release upload "${TAG}" "$file" + fi + done - name: Output release information run: |