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

[WIP] again

parent d42b3cc7
No related branches found
No related tags found
No related merge requests found
Pipeline #16546 waiting for manual action
......@@ -37,10 +37,18 @@ echo "END OF PUSH"
echo "BEGIN UPLOAD"
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)
echo "END UPLOAD"
echo "BEGIN POST RELEASE"
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"
for retry in $(seq 1 5); do
if 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"
then
break
else
sleep 5
fi
done
echo "END POST RELEASE"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment