diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 821146eb63b365ff7f5630811243af1f911dec5a..67051d318fbc861376b040c38845ab4d3700713c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -115,7 +115,7 @@ create_release: script: - echo "Creating release and attaching tutorials.zip..." - echo "Using tag $CI_COMMIT_REF_NAME" - - 'curl --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" --upload-file tutorials.zip "$CI_API_V4_URL/projects/$CI_PROJECT_ID/uploads" > upload_response.json' + - 'curl --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" -header "Content-Type: application/zip" --upload-file tutorials.zip "$CI_API_V4_URL/projects/$CI_PROJECT_ID/uploads" > upload_response.json' - cat upload_response.json - 'UPLOAD_URL=$(jq -r ".url" upload_response.json)' - 'if [ -z "$UPLOAD_URL" ] || [ "$UPLOAD_URL" = "null" ]; then echo "Error: Unable to extract upload URL!" && cat upload_response.json && exit 1; fi'