python/.woodpecker/release.yml

20 lines
461 B
YAML
Raw Normal View History

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
when:
event: tag
2022-09-12 17:14:43 +02:00
commands:
2022-09-12 17:31:22 +02:00
- python --version
- pip install -U build --quiet
2022-09-12 19:21:40 +02:00
- python -m build
upload:
image: python:latest
2022-09-12 19:37:43 +02:00
when:
event: tag
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/*