From a9196328e7d7efe4b6718b22d72c6df9bf59411c Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Wed, 17 Apr 2024 18:12:00 +0200 Subject: [PATCH] ci: removed redundant build step --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7fb7007..4891edf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -160,7 +160,9 @@ semver: - pip install python-semantic-release==9.* wheel build twine - export GL_TOKEN=$CI_UPDATES - semantic-release -vv version - - python -m build + + # check if any artifacts were created + - if [ ! -d dist ]; then echo No release will be made; exit 0; fi - twine upload dist/* -u __token__ -p $CI_PYPI_TOKEN --skip-existing - semantic-release publish