Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 851c4a32 authored by PETIT Manuel's avatar PETIT Manuel
Browse files

Trying to fix the create_release issue

parent b269217d
No related branches found
No related tags found
No related merge requests found
Pipeline #1097442 failed
......@@ -78,6 +78,7 @@ coverage:
when: always
- if: $CI_COMMIT_BRANCH =~ /^hotfix/
when: manual
allow_failure: true
zip_tutorials:
stage: release
......@@ -113,11 +114,15 @@ create_release:
- chmod +x /usr/local/bin/release-cli
script:
- 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)
- 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}\"}"
- 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'
- 'UPLOAD_URL=$(jq -r ".url" upload_response.json)'
- |
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}\"}"
rules:
- if: '$CI_COMMIT_REF_NAME == "hotfix/fix-doc-installation"' # Test only on your hotfix branch
when: always
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment