1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-25 10:48:33 +01:00
website/_ci/deploy.sh
2017-08-24 11:39:07 +02:00

38 lines
783 B
Bash
Executable File

#!/usr/bin/env bash
set -e;
##
## check for pull request against master
##
if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
gulp deploy --beta;
##
## check for master push which is no pull request
##
elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
#gulp deploy --live;
gulp deploy --beta;
else
tput setaf 64 # green
echo "---------------------------------------------"
echo " ✓ nothing to deploy "
echo "---------------------------------------------"
tput sgr0 # reset
fi;
tput setaf 64 # green
echo "---------------------------------------------"
echo " ✓ done deployment "
echo "---------------------------------------------"
tput sgr0 # reset
exit;