From 21c938e639f1cc16fe1c4e51e1ca275dc242ff9a Mon Sep 17 00:00:00 2001 From: Cresson Remi <remi.cresson@irstea.fr> Date: Mon, 10 Feb 2025 21:26:51 +0100 Subject: [PATCH] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 170300a..7e46821 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,10 +14,6 @@ variables: DOC_BUILD_SELF: true - TWINE_USERNAME: __token__ - TWINE_PASSWORD: $PYPI_TOKEN - PIP_PACKAGE_URL: https://upload.pypi.org/legacy/ - stages: - Static Analysis - Test @@ -58,3 +54,9 @@ 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