Add main or master branch condition
This commit is contained in:
parent
5f7c16b566
commit
0c6a3edb34
@ -3,6 +3,7 @@ pipeline:
|
|||||||
image: python:latest
|
image: python:latest
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
branch: [ main, master ]
|
||||||
commands:
|
commands:
|
||||||
- python --version
|
- python --version
|
||||||
- pip install -U build --quiet
|
- pip install -U build --quiet
|
||||||
@ -12,6 +13,7 @@ pipeline:
|
|||||||
image: python:latest
|
image: python:latest
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
branch: [ main, master ]
|
||||||
secrets: [ twine_username, twine_password ]
|
secrets: [ twine_username, twine_password ]
|
||||||
commands:
|
commands:
|
||||||
- pip install -U twine --quiet
|
- pip install -U twine --quiet
|
||||||
|
Loading…
Reference in New Issue
Block a user