From 76a794e7ab94d551a248a1e9fd11edf0e615ec3e Mon Sep 17 00:00:00 2001 From: Faerbit Date: Wed, 28 Sep 2022 01:26:40 +0200 Subject: [PATCH] [ci] Deploy to PyPI --- .gitlab-ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 34e36c2..47f6e72 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,12 +67,23 @@ package_windows: paths: - dist/fime_windows_* -upload: +pypi_package: + stage: deploy + environment: pypi + rules: + - if: $CI_COMMIT_TAG + before_script: + - pip install twine + script: + - twine upload dist/fime_*.whl + +gitlab_package: stage: deploy image: curlimages/curl:latest rules: - if: $CI_COMMIT_TAG script: + - curl --version - | curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "dist/${LINUX_AMD64_BINARY}" "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}" - |