Skip to content

Commit

Permalink
Update upload strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed Apr 28, 2024
1 parent 5c8ef3f commit f55caf6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f55caf6

Please sign in to comment.