forked from enjoytoshare/NoteBook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.sh
28 lines (23 loc) · 983 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
26
27
28
echo '--------upload files start--------'
# 进入生成的构建文件夹
# cd ./
# 如果你是要部署到自定义域名
# echo 'www.example.com' > CNAME
# git init
git add .
git status
git commit -m 'auto update https://wugenqiang.github.io/NoteBook'
echo '--------commit successfully--------'
# git push -f https://github.com/wugenqiang/CS-Notes.git master
git push -u https://github.com/wugenqiang/NoteBook.git master
# git remote add origin https://github.com/wugenqiang/CS-Notes.git
# git push -u origin master
echo '--------push to GitHub successfully--------'
# git push -f https://gitee.com/wugenqiang/CS-Notes.git master
git push -u https://gitee.com/wugenqiang/NoteBook.git master
# git remote add origin https://gitee.com/wugenqiang/CS-Notes.git
# git push -u origin master
echo '--------push to Gitee successfully--------'
# 如果你想要部署到 https://<USERNAME>.github.io/<REPO>
# git push -f [email protected]:<USERNAME>/<REPO>.git master:gh-pages
# 完美