Commit c2db83e6 authored by Maximilian Schanner's avatar Maximilian Schanner
Browse files

Show the id before deleting.

parent 0865ff6a
......@@ -17,6 +17,7 @@ build-job:
# get the current package id
- "export ID=$(curl --request GET --header 'PRIVATE-TOKEN: ${API_ACCES_TOKEN}' 'https://gitext.gfz-potsdam.de/api/v4/projects/1055/packages' | grep -P '(?<=.id.:)(\\d+)' -o )"
# remove the package, as we want a new build even if the version number did not change
- 'echo $ID'
- 'curl --request DELETE --header "PRIVATE-TOKEN: ${API_ACCES_TOKEN}" "https://gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/$ID"'
# upload
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --repository-url https://gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/* --verbose
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment