Moved RELEASE_FILE calc

This commit is contained in:
Francesco Macagno 2015-08-25 18:10:53 -07:00
parent 20ca7b2656
commit fc18f6660c

View file

@ -10,7 +10,6 @@ env:
before_install:
- chmod +x gradlew
before_deploy:
- export RELEASE_FILE=$(ls build/libs/*.jar)
- echo "deploying ${RELEASE_FILE} to GitHub releases"
deploy:
provider: releases
@ -24,5 +23,5 @@ deploy:
tags: true
jdk: oraclejdk7
after_success:
- echo "curl --ftp-create-dirs -T ${RELEASE_FILE} -u $FTP_USER:$FTP_PASSWORD ftp://khazaddum.caltech.edu/warpdrive/files/${RELEASE_FILE}.${TRAVIS_BUILD_NUMBER}-${TRAVIS_BRANCH}.jar"
"curl --ftp-create-dirs -T ${RELEASE_FILE} -u $FTP_USER:$FTP_PASSWORD ftp://khazaddum.caltech.edu/warpdrive/files/${RELEASE_FILE}.${TRAVIS_BUILD_NUMBER}-${TRAVIS_BRANCH}.jar"
- export RELEASE_FILE=$(ls build/libs/*.jar)
- "curl --ftp-create-dirs -T ${RELEASE_FILE} --user $FTP_USER:$FTP_PASSWORD ftp://khazaddum.caltech.edu/warpdrive/files/${RELEASE_FILE}.${TRAVIS_BUILD_NUMBER}-${TRAVIS_BRANCH}.jar"