Skip to content
Snippets Groups Projects
Commit 565f97ca authored by Nicolas Borboën's avatar Nicolas Borboën
Browse files

[WIP] Export UPLOADED FILE URL

parent 342c21d0
Branches
Tags
No related merge requests found
Pipeline #16532 failed
...@@ -59,7 +59,7 @@ create_release: ...@@ -59,7 +59,7 @@ create_release:
- export RELEASE_V=v$(date '+%s') - export RELEASE_V=v$(date '+%s')
- git tag -f -a -m "My sweet release $(date '+%Y-%m-%d %H:%M:%S')" ${RELEASE_V} - git tag -f -a -m "My sweet release $(date '+%Y-%m-%d %H:%M:%S')" ${RELEASE_V}
- git push -f --tags - git push -f --tags
- UPLOADED_FILE_URL=$(curl --request POST --header "Private-Token: ${MY_TOKEN}" --form "file=@README.pdf" "https://gitlab.epfl.ch/api/v4/projects/1298/uploads" | jq .url) - export UPLOADED_FILE_URL=$(curl --request POST --header "Private-Token: ${MY_TOKEN}" --form "file=@README.pdf" "https://gitlab.epfl.ch/api/v4/projects/1298/uploads" | jq .url)
- curl --request POST --header 'Content-Type: application/json' --header "Private-Token: ${MY_TOKEN}" --data '{"name": "New README release", "tag_name": "${RELEASE_V}", "description": "Release with the PDF [README.pdf](${UPLOADED_FILE_URL})"}' "https://gitlab.epfl.ch/api/v4/projects/1298/releases" - curl --request POST --header 'Content-Type: application/json' --header "Private-Token: ${MY_TOKEN}" --data '{"name": "New README release", "tag_name": "${RELEASE_V}", "description": "Release with the PDF [README.pdf](${UPLOADED_FILE_URL})"}' "https://gitlab.epfl.ch/api/v4/projects/1298/releases"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment