mirror of
https://github.com/bigchaindb/site.git
synced 2024-10-31 23:35:38 +01:00
39 lines
963 B
Bash
Executable File
39 lines
963 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;
|
|
aws s3 sync ./_dist s3://beta.bigchaindb.com --delete --acl public-read --sse
|
|
|
|
|
|
##
|
|
## check for master push which is no pull request
|
|
##
|
|
elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
|
|
|
#gulp deploy --live;
|
|
aws s3 sync ./_dist s3://www.bigchaindb.com --delete --acl public-read --sse
|
|
|
|
else
|
|
|
|
echo "$(tput setaf 64)" # green
|
|
echo "---------------------------------------------"
|
|
echo " ✓ nothing to deploy "
|
|
echo "---------------------------------------------"
|
|
echo "$(tput sgr0)" # reset
|
|
|
|
fi;
|
|
|
|
echo "$(tput setaf 64)" # green
|
|
echo "---------------------------------------------"
|
|
echo " ✓ done deployment "
|
|
echo "---------------------------------------------"
|
|
echo "$(tput sgr0)" # reset
|
|
|
|
exit;
|