Skip to content

Commit

Permalink
attempt to get the root directory named right
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio committed Dec 13, 2017
1 parent 75a77fe commit bcd1958
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .travis/deploy_script.sh
@@ -1,20 +1,23 @@
#!/usr/bin/env bash

if test "$TRAVIS_TAG"; then
PKG_NAME=$TRAVIS_TAG
else
PKG_NAME=nightly
fi
if [ "$TRAVIS" = "true" ]; then

echo $PKG_NAME
if test "$TRAVIS_TAG"; then
PKG_NAME=$TRAVIS_TAG
else
PKG_NAME=nightly
fi

if [ "$TRAVIS" = "true" ]; then
echo "Writing $PKG_NAME.tar.gz"

# delete all superfluous files
rm -rf .git deploy_rsa.enc .idea phpvms.iml .travis .dpl
find . -type d -name ".git" | xargs rm -rf

# tar and upload
tar -czf $PKG_NAME.tar.gz -C $TRAVIS_BUILD_DIR phpvms
mkdir -p /tmp/out/phpvms
cp -R $TRAVIS_BUILD_DIR/ /tmp/out/phpvms
tar -czf $PKG_NAME.tar.gz -C /tmp/out/
rsync -r --delete-after --quiet $PKG_NAME.tar.gz downloads@phpvms.net:/var/www/downloads/
rm -rf /tmp/out
fi

0 comments on commit bcd1958

Please sign in to comment.