python/.woodpecker/release.yml

21 lines
547 B
YAML

pipeline:
build:
image: python:latest
when:
event: tag
# branch: [ main, master ] doesn't work atm
commands:
- python --version
- pip install -U build --quiet
- python -m build
upload:
image: python:latest
when:
event: tag
# branch: [ main, master ] doesn't work atm
secrets: [ twine_username, twine_password ]
commands:
- pip install -U twine --quiet
- python -m twine upload --skip-existing --repository testpypi -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*