Skip to content

Commit 94557a1

Browse files
committed
fix: rename binaries to platform-specific names before upload
The Unix binaries were all being uploaded as 'diffscope' without platform suffixes. Now we copy them to their platform-specific names before upload.
1 parent 88f273f commit 94557a1

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,11 @@ jobs:
170170
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
171171
run: |
172172
cd target/${{ matrix.target }}/release/
173-
# Upload binary
173+
# Copy/rename binary to platform-specific name
174174
if [ -f "${{ matrix.artifact_name }}" ]; then
175-
echo "Uploading ${{ matrix.artifact_name }}..."
176-
gh release upload ${{ github.ref_name }} "${{ matrix.artifact_name }}" --clobber || true
175+
cp "${{ matrix.artifact_name }}" "${{ matrix.asset_name }}"
176+
echo "Uploading ${{ matrix.asset_name }}..."
177+
gh release upload ${{ github.ref_name }} "${{ matrix.asset_name }}" --clobber || true
177178
fi
178179
# Upload checksum
179180
if [ -f "${{ matrix.asset_name }}.sha256" ]; then
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Not Found
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Not Found

0 commit comments

Comments
 (0)