From 3661e21642650157b59ad9960d6e923b420227b6 Mon Sep 17 00:00:00 2001 From: Jan Baraniewski Date: Mon, 29 Apr 2024 00:35:17 +0200 Subject: [PATCH] Update tagging of images --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 82e174d..5e9952c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -100,11 +100,14 @@ jobs: echo "Uploading $file" curl -X POST \ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - -H "Content-Type: application/octet-stream" \ - -T "${file}" \ - "${{ steps.create_release.outputs.upload_url }}?name=$(basename $file)&label=$(basename $file)" + -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 }}" done + container-image: runs-on: ubuntu-latest strategy: