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}" - |