From e192414abcacd52541a299c60a735a7d481e7eff Mon Sep 17 00:00:00 2001
From: Cresson Remi <remi.cresson@irstea.fr>
Date: Mon, 10 Feb 2025 21:53:51 +0100
Subject: [PATCH] Update file .gitlab-ci.yml

---
 .gitlab-ci.yml | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7e46821..89097ee 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,6 +12,10 @@ variables:
   PYTHON_IMG: python:3.12-slim
   PACKAGE_INSTALL_EXTRAS: "[test]"
 
+  PIP_PACKAGE_URL: https://upload.pypi.org/legacy/
+  TWINE_USERNAME: __token__
+  TWINE_PASSWORD: ${PYPI_TOKEN} 
+
   DOC_BUILD_SELF: true
 
 stages:
@@ -54,9 +58,3 @@ Pytest:
         coverage_format: cobertura
         path: coverage.xml
       junit: report.xml
-
-Build pip package:
-  script:
-    - pip install build twine
-    - python -m build
-    - python -m twine upload --repository-url https://upload.pypi.org/legacy/ --non-interactive --verbose -u __token__ -p $PYPI_TOKEN dist/*
-- 
GitLab