forked from bitshares/bitshares-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
executable file
·25 lines (24 loc) · 842 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This script clones an existing gh-pages repository and pushes updates
# from the newly compiled version into github.
# The GITHUB_TOKEN for authentication is stored in the encrypted
# variable in .travis.yml
# Clone Repo
############
#echo "Cloning wallet repo"
unamestr=`uname`
echo $unamestr
echo $TRAVIS_TAG
if [[ "$unamestr" == 'Linux' && -n $TRAVIS_TAG ]]
then
## wallet.bitshares.org subdomain (independent repo)
echo "Pushing new wallet subdomain repo"
git clone https://github.com:${GITHUB_TOKEN}@github.com/${WALLET_REPO} $TRAVIS_BUILD_DIR/wallet.bitshares.org
cd $TRAVIS_BUILD_DIR/wallet.bitshares.org
git checkout gh-pages
rm -rf ./*
git checkout ./CNAME
cp -Rv $TRAVIS_BUILD_DIR/build/hash-history_/* .
git add -A
git commit -a -m "Update wallet by Travis: v$TRAVIS_TAG"
git push
fi