From 8cab2033f3d4a7b1fba3766d206c17e9f8244e3f Mon Sep 17 00:00:00 2001
From: Dilawar Singh <dilawar@subcom.tech>
Date: Sat, 22 Oct 2022 17:28:40 +0530
Subject: [PATCH] cicd: failure to upload is an error now.

---
 .ci/release.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.ci/release.sh b/.ci/release.sh
index c6e1620..b2ea587 100755
--- a/.ci/release.sh
+++ b/.ci/release.sh
@@ -8,5 +8,6 @@ VERSION=${_version#'v'} # remove prefixed 'v' if any
 cp pyproject.toml /tmp/pyproject.toml.1
 poetry version ${VERSION}
 poetry build
-poetry run twine upload dist/*.whl -u __token__ -p $BITIA_PYPI_TOKEN || echo "Failed to upload"
+poetry add twine
+poetry run twine upload dist/*.whl -u __token__ -p $BITIA_PYPI_TOKEN
 mv /tmp/pyproject.toml.1 pyproject.toml
-- 
GitLab