python/.woodpecker/release.yml

21 lines
547 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-13 15:19:52 +02:00
# branch: [ main, master ] doesn't work atm
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
2022-09-13 15:19:52 +02:00
# branch: [ main, master ] doesn't work atm
secrets: [ twine_username, twine_password ]
commands:
- 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/*