Commit 1031dbfd authored by Tom Teichler's avatar Tom Teichler 🍻
Browse files

Revert "Merge branch 'feature/always-local-pypi' into 'master'"

This reverts merge request !18
parent cd35824d
Pipeline #6217 passed with stage
in 25 seconds
deploy_gitlab:
stage: publish
script:
- if [ x$CI_COMMIT_REF_NAME = x$CI_COMMIT_TAG ]; then
- if [ $CI_COMMIT_REF_NAME = master ]; then
poetry version $(poetry version | cut -d" " -f2)+$(date --date=${CI_COMMIT_TIMESTAMP} +%Y%m%d%H%M%S).${CI_COMMIT_SHORT_SHA} ;
elif [ x$CI_COMMIT_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 ;
else ;
poetry version $(poetry version | cut -d" " -f2)+$(date --date=${CI_COMMIT_TIMESTAMP} +%Y%m%d%H%M%S).${CI_COMMIT_SHORT_SHA} ;
fi
- poetry publish -r gitlab
only:
- master
- tags
deploy_pypi:
stage: publish
......
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