From 3469b061d5e3022ef09093b4ba3b656e8073bfb3 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Tue, 13 Sep 2022 14:57:02 +0200 Subject: [PATCH] [ci] Upload release wheels. --- scripts/ci/jobs/release.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/scripts/ci/jobs/release.yml b/scripts/ci/jobs/release.yml index 81bba47813a..bb2581ec1ca 100644 --- a/scripts/ci/jobs/release.yml +++ b/scripts/ci/jobs/release.yml @@ -9,3 +9,24 @@ release: release: tag_name: "$CI_COMMIT_TAG" description: "Created using the GitLab release-cli." + +publish wheels: + stage: release + needs: ["build wheels linux", "build wheels mac", "build wheels win"] + tags: [envinf, shell] + rules: + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH + variables: + PYPI_PASSWORD: "${TEST_PYPI_TOKEN}" + PYPI_REPO: testpypi + - if: $CI_COMMIT_TAG + variables: + PYPI_PASSWORD: "${PYPI_TOKEN}" + PYPI_REPO: pypi + script: + - > + pipx run twine upload + --repository ${PYPI_REPO} + --username __token__ + --password ${PYPI_PASSWORD} + wheelhouse/* -- GitLab