diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 68d30a5682fb56ce8283bb18638022b460ca0eef..a10c674a55bbc9d7d7dac5015ec2a56a5f25f232 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,16 +40,18 @@ release_job: rules: - if: $CI_COMMIT_TAG before_script: + - curl --location --output /usr/local/bin/release-cli "https://release-cli-downloads.s3.amazonaws.com/latest/release-cli-linux-amd64" - pip install twine + - chmod +x /usr/local/bin/release-cli script: - python setup.py sdist - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/* -# release: -# tag_name: '$CI_COMMIT_TAG' -# description: '$CI_COMMIT_TAG' + release: + tag_name: '$CI_COMMIT_TAG' + description: '$CI_COMMIT_TAG' # release_job_2: # stage: release