diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 0da17d7..dc53aa3 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -178,8 +178,7 @@ jobs: HTTP_CODE=$(curl -s -o /tmp/upload_response.json -w "%{http_code}" \ -X POST "${API}/repos/${REPO}/releases/${RELEASE_ID}/assets?name=${NAME}" \ -H "Authorization: token ${TOKEN}" \ - -H "Content-Type: application/octet-stream" \ - --data-binary "@${file}") + -F "attachment=@${file};type=application/zip") echo "HTTP ${HTTP_CODE}: $(cat /tmp/upload_response.json)" if [ "${HTTP_CODE}" != "201" ]; then echo "Failed to upload ${NAME}" && exit 1