Commit 68ef4ade authored by Loïc Musy's avatar Loïc Musy
Browse files

Update .gitlab-ci.yml file

parent 611a1854
Pipeline #29830 failed with stage
in 30 seconds
image: python:3.9.2-buster
stages:
- deploy_stage
- deploy_prod
before_script:
- pip install twine
- python setup.py sdist
deploy_staging:
stage: deploy
variables:
TWINE_USERNAME: $STAGING_USERNAME
TWINE_PASSWORD: $STAGING_PASSWORD
script:
- twine upload --repository testpypi dist/* --verbose
except:
- tags
deploy_production:
stage: deploy_prod
stage: deploy
variables:
TWINE_USERNAME: __token__
TWINE_PASSWORD: $PRODUCTION_PASSWORD
script:
- twine upload --repository-url https://upload.pypi.org/legacy/ dist/* --verbose
only:
- tags
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment