Skip to content

Commit 67b9a02

Browse files
committed
Fix binary upload for releases
1 parent b335a1f commit 67b9a02

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/optimize-binaries.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,11 @@ jobs:
122122
for file in *.tar.gz; do
123123
if [[ -f "$file" ]]; then
124124
echo "⬆️ Uploading $file..."
125-
curl \
126-
-X POST \
127-
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
128-
-H "Content-Type: application/gzip" \
129-
--data-binary "@$file" \
130-
"${{ steps.create_release.outputs.upload_url }}?name=$file"
125+
gh release upload "${{ env.TAG_NAME }}" "$file" --clobber
131126
fi
132127
done
128+
env:
129+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133130

134131
- name: Upload artifacts (for workflow runs)
135132
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)