From be13882e290255701c2111c1f89a269e132701e3 Mon Sep 17 00:00:00 2001 From: Dan Midwood Date: Mon, 11 Jun 2018 13:06:47 +0100 Subject: [PATCH] Change Travis pre-release configuration This will match any tag that has the version numbers followed by "-" and then anything else. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]+-.+$