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 17:14:43 +02:00
|
|
|
commands:
|
2022-09-12 17:31:22 +02:00
|
|
|
- python --version
|
2022-09-12 19:36:34 +02:00
|
|
|
- pip install -U build --quiet
|
2022-09-12 19:21:40 +02:00
|
|
|
- python -m build
|
2022-09-12 19:36:34 +02:00
|
|
|
|
|
|
|
upload:
|
|
|
|
image: python:latest
|
2022-09-12 19:37:43 +02:00
|
|
|
when:
|
|
|
|
event: tag
|
2022-09-12 19:36:34 +02:00
|
|
|
secrets: [ twine_username, twine_password ]
|
|
|
|
commands:
|
|
|
|
- ls -l
|
|
|
|
- pip install -U twine --quiet
|
2022-09-12 19:29:46 +02:00
|
|
|
- python -m twine upload --skip-existing --repository testpypi -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*
|