Skip to content

Commit e9239c6

Browse files
committed
Don't deploy non-version tagged releases
We could use Travis's conditions on the release to enforce this, but that would result in the binaries not being deploy whilst the manifests were (because that resets TRAVIS_TAG) which is pretty bad (it would block all autoupdates until the next release).
1 parent f22f97a commit e9239c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
- |
3636
echo "Travis tag was $TRAVIS_TAG"
3737
38+
if ! [[ $TRAVIS_TAG =~ ^v.*$" ]]; then
39+
echo 'Non-version tag, rejecting deploy'
40+
exit 1
41+
fi
42+
3843
if ! [[ $DEPLOY_STEP ]]; then
3944
export DEPLOY_STEP=1
4045
echo 'About to deploy new tag'

0 commit comments

Comments
 (0)