Chandan Singh pushed to branch chandan/automate-pypi-release at BuildStream / buildstream
Commits:
-
6696f9b8
by Chandan Singh at 2018-11-28T16:52:19Z
1 changed file:
Changes:
| ... | ... | @@ -67,10 +67,12 @@ pypi_release: |
| 67 | 67 |
- |
|
| 68 | 68 |
if [[ ! "$CI_COMMIT_TAG" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
| 69 | 69 |
echo "Not processing non-numeric tag: $CI_COMMIT_TAG for PyPI"
|
| 70 |
+ exit
|
|
| 70 | 71 |
fi
|
| 71 | 72 |
minor_version="$(echo "$CI_COMMIT_TAG" | cut -d. -f2)"
|
| 72 | 73 |
if [[ "$(( minor_version %2 ))" -ne 0 ]]; then
|
| 73 | 74 |
echo "Not uploading development release: $CI_COMMIT_TAG to PyPI"
|
| 75 |
+ exit
|
|
| 74 | 76 |
fi
|
| 75 | 77 |
|
| 76 | 78 |
# Credentials for PyPI are defined in secret CI variables "TWINE_USERNAME"
|
