diff options
Diffstat (limited to '.travis.yml')
| -rw-r--r-- | .travis.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index a5841ba5..a3f6360b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -152,8 +152,11 @@ notifications: on_success: never on_failure: never before_deploy: - - git tag -f dev-build-${TRAVIS_BRANCH} - - git push -f https://${TRAVIS_REPO_SLUG%/*}:${GITHUB_API_KEY}@github.com/${TRAVIS_REPO_SLUG}.git dev-build-${TRAVIS_BRANCH} + - | + if [[ !("$TRAVIS_TAG" =~ ^v[0-9.]+$) ]]; then + git tag -f dev-build-${TRAVIS_BRANCH//\//-} + git push -f https://${TRAVIS_REPO_SLUG%/*}:${GITHUB_API_KEY}@github.com/${TRAVIS_REPO_SLUG}.git dev-build-${TRAVIS_BRANCH//\//-} + fi deploy: - provider: releases api_key: |
