python/.woodpecker/deploy.yml
RealStickman 2eb1349058
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
ci/woodpecker/push/linting Pipeline failed
Skip build and deploy if no tag created
2022-09-12 17:37:52 +02:00

17 lines
403 B
YAML

pipeline:
deploy:
image: python:latest
when:
event: tag
branch: [main, master]
commands:
- python --version
- pip install -U virtualenv --quiet
- virtualenv venv
- source venv/bin/activate
- pip install -U twine --quiet
- twine upload --skip-existing --repository testpypi -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*
depends_on:
- build