Skip build and deploy if no tag created
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
ci/woodpecker/push/linting Pipeline failed

This commit is contained in:
RealStickman 2022-09-12 17:37:52 +02:00
parent 5b5148a2e4
commit 2eb1349058
2 changed files with 8 additions and 6 deletions

View File

@ -1,6 +1,9 @@
pipeline:
build:
image: python:latest
when:
event: tag
branch: [main, master]
commands:
- python --version
- pip install -U virtualenv --quiet
@ -8,7 +11,3 @@ pipeline:
- source venv/bin/activate
- pip install -U build --quiet
- build
when:
event: tag
branch: [main, master]

View File

@ -1,6 +1,9 @@
pipeline:
deploy:
image: python:latest
when:
event: tag
branch: [main, master]
commands:
- python --version
- pip install -U virtualenv --quiet
@ -9,5 +12,5 @@ pipeline:
- pip install -U twine --quiet
- twine upload --skip-existing --repository testpypi -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*
depends_on:
- build
depends_on:
- build