Commit 0af072de authored by Maximilian Schanner's avatar Maximilian Schanner
Browse files

Testing version number raise.

parent 9257533c
...@@ -22,7 +22,7 @@ build-job: ...@@ -22,7 +22,7 @@ build-job:
- 'export ID=$(curl --max-time 900 --connect-timeout 120 --request GET --header "PRIVATE-TOKEN: ${API_ACCES_TOKEN}" "https://git.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages" | grep -P "(?<=.id.:)(\\d+)" -o | head -1)' - 'export ID=$(curl --max-time 900 --connect-timeout 120 --request GET --header "PRIVATE-TOKEN: ${API_ACCES_TOKEN}" "https://git.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages" | grep -P "(?<=.id.:)(\\d+)" -o | head -1)'
# remove the package, as we want a new build even if the version number did not change # remove the package, as we want a new build even if the version number did not change
- 'echo $ID' - 'echo $ID'
- 'curl --max-time 900 --connect-timeout 120 --request DELETE --header "PRIVATE-TOKEN: ${API_ACCES_TOKEN}" "https://git.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/$ID"' #- 'curl --max-time 900 --connect-timeout 120 --request DELETE --header "PRIVATE-TOKEN: ${API_ACCES_TOKEN}" "https://git.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/$ID"'
# upload # upload
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --repository-url https://git.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/* --verbose - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --repository-url https://git.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/* --verbose
only: only:
......
...@@ -44,4 +44,4 @@ from pymagglobal.core import master_curve, dipole_series, file2splines, \ ...@@ -44,4 +44,4 @@ from pymagglobal.core import master_curve, dipole_series, file2splines, \
field, coefficients, built_in_models, Model field, coefficients, built_in_models, Model
from pymagglobal import utils from pymagglobal import utils
__version__ = '0.1.0' __version__ = '0.1.1'
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