diff --git a/.travis.yml b/.travis.yml index b7fff6d57..93731cf97 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,9 +40,9 @@ deploy: condition: $TRAVIS_TAG =~ ^[0-9]+\.[0-9]+\.[0-9]+$ - provider: releases api_key: "$RELEASE_OAUTH_TOKEN" - file: "releases/drafter-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER.jar" + file: "releases/drafter-$TRAVIS_TAG-$TRAVIS_BUILD_NUMBER.jar" prerelease: true skip_cleanup: true on: tags: true - condition: $TRAVIS_TAG =~ ^[a-z,A-Z]+.* + condition: $TRAVIS_TAG =~ ^[0-9]+\.[0-9]+\.[0-9]+-.+$