2022-09-12 17:14:43 +02:00
|
|
|
pipeline:
|
2022-09-12 19:21:40 +02:00
|
|
|
build:
|
2022-09-12 17:31:22 +02:00
|
|
|
image: python:latest
|
2022-09-12 17:37:52 +02:00
|
|
|
when:
|
|
|
|
event: tag
|
2022-09-12 18:43:38 +02:00
|
|
|
secrets: [ twine_username, twine_password ]
|
2022-09-12 17:14:43 +02:00
|
|
|
commands:
|
2022-09-12 17:31:22 +02:00
|
|
|
- python --version
|
2022-09-12 19:21:40 +02:00
|
|
|
- pip install -U build twine --quiet
|
|
|
|
- python -m build
|
2022-09-12 19:15:18 +02:00
|
|
|
- python -m twine upload --skip-existing --repository testpypi -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*
|