diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d2ae9d1b2c67038c70a2bee7cc089555ac9ef08f..a1b457d5555ac862120017a396a8aa3952aa4de7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -115,13 +115,13 @@ create_release: - echo "Creating release and attaching tutorials.zip..." - echo "Using tag $CI_COMMIT_TAG" - curl --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" --upload-file tutorials.zip "$CI_API_V4_URL/projects/$CI_PROJECT_ID/uploads" > upload_response.json - - UPLOAD_URL=$(jq -r '.url' upload_response.json) # Extract the uploaded URL path + - UPLOAD_URL=$(jq -r '.url' upload_response.json) # Extract the uploaded URL path using jq - echo "ZIP File uploaded and accessible at: $UPLOAD_URL" - release-cli create \ - --name "Release TEST-$CI_COMMIT_REF_NAME" \ - --tag-name "TEST-$CI_COMMIT_REF_NAME" \ - --description $'## Test Release\nThis is a test release from the hotfix branch.'\ - --assets-link "{\"name\":\"tutorials.zip\", \"url\":\"$CI_PROJECT_URL${UPLOAD_URL}\"}" + --name "Release TEST-$CI_COMMIT_REF_NAME" \ + --tag-name "TEST-$CI_COMMIT_REF_NAME" \ + --description $'## Test Release\nThis is a test release from the hotfix branch.' \ + --assets-link "{\"name\":\"tutorials.zip\", \"url\":\"${CI_PROJECT_URL}${UPLOAD_URL}\"}" rules: - if: '$CI_COMMIT_TAG' # Run only on tag pipelines, e.g., for release tags when: always