Skip to content

Commit f502190

Browse files
committed
Deploy but don't autoupdate to non-version tags
1 parent e9239c6 commit f502190

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.travis.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +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-
4338
if ! [[ $DEPLOY_STEP ]]; then
4439
export DEPLOY_STEP=1
4540
echo 'About to deploy new tag'
46-
else
41+
elif [[ $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
42+
# If it's a standard version tag, we subsequently update the latest release:
4743
# Change TRAVIS_TAG in the 2nd deploy step
4844
export DEPLOY_STEP=2
4945
echo 'About to deploy manifest update'
@@ -74,4 +70,5 @@ jobs:
7470
skip_cleanup: true
7571
on:
7672
repo: httptoolkit/httptoolkit-server
77-
tags: true
73+
tags: true
74+
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$

0 commit comments

Comments
 (0)