From 0a67994f55840b815bb5f4be183834f3902ee5f3 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Wed, 11 Nov 2020 23:04:07 +0100 Subject: [PATCH] Fix script --- ci/build_dist.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/build_dist.yml b/ci/build_dist.yml index 41c9d05d9..5f4d1075f 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 -- GitLab