python/.woodpecker/deploy.yml

15 lines
352 B
YAML
Raw Normal View History

2022-09-12 17:14:43 +02:00
pipeline:
deploy:
2022-09-12 17:31:22 +02:00
image: python:latest
when:
event: tag
branch: [main, master]
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
- 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/*
depends_on:
- build