From f55caf67e2803e94f8bf4d38cbbab40880704093 Mon Sep 17 00:00:00 2001 From: Jan Baraniewski Date: Mon, 29 Apr 2024 00:31:20 +0200 Subject: [PATCH] Update upload strategy --- .github/workflows/release.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d298eb0..21837cb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -100,11 +100,9 @@ jobs: echo "Uploading $file" curl -X POST \ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - -H "Content-Type: multipart/form-data" \ - -F "file=@${file};type=$(file -b --mime-type $file)" \ - -F "name=$(basename $file)" \ - -F "label=$(basename $file)" \ - "${{ steps.create_release.outputs.upload_url }}" + -H "Content-Type: application/octet-stream" \ + -T "${file}" \ + "${{ steps.create_release.outputs.upload_url }}?name=$(basename $file)&label=$(basename $file)" done container-image: