diff --git a/ci/build_dist.yml b/ci/build_dist.yml index 41c9d05d9a4224c0fa6d297ef5c2071e0f333d2b..5f4d1075fc5cc417927006636215d49432c6a523 100644 --- a/ci/build_dist.yml +++ b/ci/build_dist.yml @@ -2,12 +2,12 @@ build_dist: stage: build script: - if [ $CI_COMMIT_REF_NAME = master ]; then - poetry version $(poetry version | cut -d" " -f2)+$(date +%s).${CI_COMMIT_SHORT_SHA} + 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 + echo "Package version does not match tag. Aborting build of tag!" >/dev/fd/2 ; + exit 1 ; + fi ; fi - tox -e build - poetry publish -r gitlab -u gitlab-ci-token -p ${CI_JOB_TOKEN} -u gitlab-ci-token