Reduce release assets by removing duplicates

Removed:
- Individual .sha256 files (checksums.txt already contains all checksums)
- Standalone binaries without version numbers (users should download versioned tarballs/zips)

Standalone binaries are only needed in Docker images for the /download/ endpoint.
GitHub releases should only contain versioned archives for user downloads.

This reduces release assets from ~54 files to ~19 files per release.
This commit is contained in:
rcourtman 2025-11-11 17:26:00 +00:00
parent 8f0a548e3d
commit fa8a8f3af3
2 changed files with 8 additions and 44 deletions

View file

@ -235,7 +235,7 @@ jobs:
echo "release_url=$(gh release view ${TAG} --json url -q .url)" >> $GITHUB_OUTPUT
echo "tag=${TAG}" >> $GITHUB_OUTPUT
- name: Upload checksums.txt first
- name: Upload checksums.txt
env:
GH_TOKEN: ${{ github.token }}
run: |
@ -244,10 +244,6 @@ jobs:
echo "Uploading checksums.txt..."
gh release upload "${TAG}" release/checksums.txt
# Also upload individual .sha256 files
echo "Uploading individual checksum files..."
gh release upload "${TAG}" release/*.sha256
- name: Upload release assets
env:
GH_TOKEN: ${{ github.token }}
@ -271,15 +267,6 @@ jobs:
# Upload install.sh
gh release upload "${TAG}" release/install.sh
# Upload standalone binaries (for direct download by installers)
echo "Uploading standalone binaries..."
# 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: |
echo "✅ Release draft created successfully!"