Skip to content
Snippets Groups Projects
Verified Commit 29d41dd0 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Cache pyproject.toml

parent bb0bfec9
No related branches found
No related tags found
1 merge request!387Resolve "+local version needs to be retained into deploy stage"
Pipeline #4353 passed
deploy_pypi:
stage: deploy
script:
- if [ $CI_COMMIT_REF_NAME = master ]; then
poetry version $(poetry version | cut -d" " -f2)+$(date +%s).${CI_COMMIT_SHORT_SHA} ;
elif [ x$CI_OMMIT_REF_NAME = x$CI_COMMIT_TAG ]; then
if ! [ "$(poetry version | cut -d" " -f2)" = $CI_COMMIT_REF_NAME ]; then
echo "Package version does not match tag. Aborting build of tag!" >/dev/fd/2 ;
exit 1 ;
fi ;
fi
- if [ $CI_COMMIT_REF_NAME = master ]; then
poetry publish -r gitlab ;
elif [ x$CI_OMMIT_REF_NAME = x$CI_COMMIT_TAG ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment