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}' '' | grep -P '(?<\\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}" "${CI_PROJECT_ID}/packages/$ID"'
# upload
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --repository-url${CI_PROJECT_ID}/packages/pypi dist/* --verbose
Supports Markdown
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