From 9387ad1891e9b1c34bfedee94ac6b47d119e082b Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Mon, 26 Mar 2018 15:20:25 -0500 Subject: [PATCH] fix version file generation --- .travis/deploy_script.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis/deploy_script.sh b/.travis/deploy_script.sh index 3d32cdb5..1f07e95c 100755 --- a/.travis/deploy_script.sh +++ b/.travis/deploy_script.sh @@ -70,11 +70,13 @@ if [ "$TRAVIS" = "true" ]; then # Upload the version for a tagged release. Move to a version file in different # tags. Within phpVMS, we have an option of which version to track in the admin if test "$TRAVIS_TAG"; then - cp $TRAVIS_BUILD_DIR/VERSION $TRAVIS_BUILD_DIR/release_version - artifacts upload --target-paths "/" $TRAVIS_BUILD_DIR/release_version + echo "uploading release version file" + cp "$TRAVIS_BUILD_DIR/VERSION" release_version + artifacts upload --target-paths "/" release_version else - cp $TRAVIS_BUILD_DIR/VERSION $TRAVIS_BUILD_DIR/$TRAVIS_BRANCH_version - artifacts upload --target-paths "/" $TRAVIS_BUILD_DIR/$TRAVIS_BRANCH_version + echo "uploading $TRAVIS_BRANCH_version file" + cp $TRAVIS_BUILD_DIR/VERSION $TRAVIS_BRANCH_version + artifacts upload --target-paths "/" $TRAVIS_BRANCH_version fi curl -X POST --data "{\"content\": \"A new build is available at http://downloads.phpvms.net/$TAR_NAME ($VERSION)\"}" -H "Content-Type: application/json" $DISCORD_WEBHOOK_URL