We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b10fb2 commit a71cc8dCopy full SHA for a71cc8d
deploy.sh
@@ -1,4 +1,12 @@
1
set -e
2
+remote=mine
3
+if [[ $PRODUCTION ]]; then
4
+ echo "Deploy to production? (y/n)"
5
+ read ans
6
+ if [[ $ans == "y" ]]; then
7
+ remote="origin"
8
+ fi
9
+fi
10
diffs=`git diff --name-status HEAD`
11
if [[ "" != $diffs ]]; then
12
echo "Can't deploy, unsaved changes:"
@@ -17,8 +25,6 @@ rm -rf site
17
25
git add . -A
18
26
git commit -m 'latest'
19
27
echo "Commit created"
20
-git push --force mine gh-pages
21
-echo "Deployed to github"
28
+git push --force $remote gh-pages
29
+echo "Deployed to $remote"
22
30
git checkout master
23
-
24
0 commit comments