forked from chandu0101/scalajs-react-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·46 lines (25 loc) · 665 Bytes
/
deploy.sh
File metadata and controls
executable file
·46 lines (25 loc) · 665 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
42
43
44
45
46
#!/bin/sh
#Handy script to deploy app to github pages(gh-pages)
# get comment
comment="$1"
rm -rf demo/assets
rm -rf demo/node_modules
sbt clean
sbt fullOptJS
cd demo
npm install
npm run build
if [ "$comment" == "" ]; then
comment="push from CI"
echo "no comment specified to deploy, using default : $comment"
fi
projectName="sjrc"
ghPagesPath="/Users/chandrasekharkode/Desktop/Kode/Programming/scalaprojects/chandu0101.github.io"
projectPath=${ghPagesPath}/${projectName}
mkdir -p ${projectPath}/assets
cp index.html ${projectPath}
cp -r assets/ ${projectPath}/assets/
cd ${ghPagesPath}
git add ${projectName}
git commit -m "$comment"
git push