From aa5488b1b54db5092c1ff5d363ec7acb857df1e4 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas@kluyver.me.uk> Date: Fri, 24 Jan 2025 11:47:09 +0000 Subject: [PATCH] Add CI job to publish to PyPI --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 851a1f0..3fff7c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,3 +24,14 @@ test: paths: - dist/*.tar.gz - wheelhouse/* + +publish-job: + stage: deploy + rules: + - if: $CI_COMMIT_TAG + dependencies: + - test + script: + - python -m pip install -U twine + + - twine upload -u __token__ -p "$PYPI_TOKEN" dist/*.tar.gz wheelhouse/* -- GitLab