Skip build and deploy if no tag created
This commit is contained in:
parent
5b5148a2e4
commit
2eb1349058
@ -1,6 +1,9 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: python:latest
|
image: python:latest
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
branch: [main, master]
|
||||||
commands:
|
commands:
|
||||||
- python --version
|
- python --version
|
||||||
- pip install -U virtualenv --quiet
|
- pip install -U virtualenv --quiet
|
||||||
@ -8,7 +11,3 @@ pipeline:
|
|||||||
- source venv/bin/activate
|
- source venv/bin/activate
|
||||||
- pip install -U build --quiet
|
- pip install -U build --quiet
|
||||||
- build
|
- build
|
||||||
|
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
branch: [main, master]
|
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
deploy:
|
deploy:
|
||||||
image: python:latest
|
image: python:latest
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
branch: [main, master]
|
||||||
commands:
|
commands:
|
||||||
- python --version
|
- python --version
|
||||||
- pip install -U virtualenv --quiet
|
- pip install -U virtualenv --quiet
|
||||||
@ -9,5 +12,5 @@ pipeline:
|
|||||||
- pip install -U twine --quiet
|
- pip install -U twine --quiet
|
||||||
- twine upload --skip-existing --repository testpypi -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*
|
- twine upload --skip-existing --repository testpypi -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
Loading…
Reference in New Issue
Block a user