Skip to content

Commit

Permalink
Fix .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
t13a committed May 31, 2020
1 parent 23f8779 commit 1b10146
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ services:

script:
- make
- 'echo TRAVIS_BRANCH="${TRAVIS_BRANCH}"'
- 'echo TRAVIS_TAG="${TRAVIS_TAG}"'

before_deploy:
- 'export "TRAVIS_TAG=${TRAVIS_TAG:-${TRAVIS_BRANCH}}"'
- export TRAVIS_TAG=$TRAVIS_BRANCH

deploy:
provider: releases
Expand All @@ -20,5 +18,5 @@ deploy:
skip_cleanup: true
on:
all_branches: true
condition: '"${TRAVIS_TAG:-${TRAVIS_BRANCH}}" =~ ^v[0-9]'
condition: $(git tag --points-at=HEAD $TRAVIS_BRANCH | wc -l) -eq 1
overwrite: true

0 comments on commit 1b10146

Please sign in to comment.