[ci] Deploy to PyPI

This commit is contained in:
Fabian 2022-09-28 01:26:40 +02:00
parent c03a268fe7
commit 76a794e7ab

View File

@ -67,12 +67,23 @@ package_windows:
paths: paths:
- dist/fime_windows_* - 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 stage: deploy
image: curlimages/curl:latest image: curlimages/curl:latest
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
script: script:
- curl --version
- | - |
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "dist/${LINUX_AMD64_BINARY}" "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}" curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "dist/${LINUX_AMD64_BINARY}" "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}"
- | - |