2022-09-12 17:14:43 +02:00
|
|
|
pipeline:
|
|
|
|
deploy:
|
2022-09-12 17:31:22 +02:00
|
|
|
image: python:latest
|
2022-09-12 17:37:52 +02:00
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
branch: [main, master]
|
2022-09-12 17:14:43 +02:00
|
|
|
commands:
|
2022-09-12 17:31:22 +02:00
|
|
|
- python --version
|
|
|
|
- pip install -U twine --quiet
|
2022-09-12 17:14:43 +02:00
|
|
|
- twine upload --skip-existing --repository testpypi -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*
|
|
|
|
|
2022-09-12 17:37:52 +02:00
|
|
|
depends_on:
|
|
|
|
- build
|