Skip to content
Snippets Groups Projects
Commit 7ba7e7d9 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch '318-local-version-needs-to-be-retained-into-deploy-stage' into 'master'

Resolve "+local version needs to be retained into deploy stage"

Closes #318

See merge request AlekSIS/official/AlekSIS!387
parents bb0bfec9 29d41dd0
No related branches found
No related tags found
1 merge request!387Resolve "+local version needs to be retained into deploy stage"
Pipeline #4354 failed
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