1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-29 07:26:22 +01:00
website/_ci/deploy.sh

38 lines
783 B
Bash
Raw Normal View History

2017-08-09 17:12:21 +02:00
#!/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
2017-08-24 11:39:07 +02:00
#gulp deploy --live;
gulp deploy --live;
2017-08-09 17:12:21 +02:00
else
2017-08-24 11:39:07 +02:00
tput setaf 64 # green
2017-08-09 17:12:21 +02:00
echo "---------------------------------------------"
echo " ✓ nothing to deploy "
echo "---------------------------------------------"
2017-08-24 11:39:07 +02:00
tput sgr0 # reset
2017-08-09 17:12:21 +02:00
fi;
2017-08-24 11:39:07 +02:00
tput setaf 64 # green
2017-08-09 17:12:21 +02:00
echo "---------------------------------------------"
echo " ✓ done deployment "
echo "---------------------------------------------"
2017-08-24 11:39:07 +02:00
tput sgr0 # reset
2017-08-09 17:12:21 +02:00
exit;