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 8519119 commit 5c8ef3f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ jobs:
run: |
for file in artifacts/*; do
echo "Uploading $file"
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Content-Type: $(file -b --mime-type $file)" --data-binary @"$file" "${{ steps.create_release.outputs.upload_url }}?name=$(basename $file)&label=$(basename $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 }}"
done
container-image:
Expand Down

0 comments on commit 5c8ef3f

Please sign in to comment.