forked from swaponline/MultiCurrencyWallet
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy
More file actions
41 lines (29 loc) · 808 Bytes
/
deploy
File metadata and controls
41 lines (29 loc) · 808 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
git pull
# build
npm run build:mainnet https://swaponline.github.io/
# update repo or clone
git clone https://sorentobot:$1@github.com/swaponline/swaponline.github.io.git
cd swaponline.github.io
git checkout master
git fetch origin
git reset --hard origin/master
# clean React code from repo
rm -rf assets
rm -rf images
rm -rf fonts
rm -rf *.css
rm -rf *.js
# update files in repo
cp -rf ../build-mainnet/* ./
# \cp build-mainnet/* mainnet.build/
# commit build to repo
DATE=`updated '+%Y-%m-%d %H:%M:%S'`
git add .
git commit -m "build $DATE"
git push --force
# return back to root
cd ..
#if [ $GITHUB_TOKEN ]; then
# curl -u caffeinum:$GITHUB_TOKEN -X POST https://api.github.com/repos/swaponline/swaponline.github.io/pulls -d '{"title":"build","head":"deploy","base":"master"}'
#fi