-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupload.sh
23 lines (19 loc) · 847 Bytes
/
upload.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# usage: in git bash, input 'sh update.sh' - windows; or in terminal input './update.sh' and click approve git for windows pop up to run it
# usage: in terminal, input 'bash update.sh' to run it
# usage: note that the quotation marks should not be input into the terminal
echo '--------upload files start--------'
# enter the target folder
# cd ./
# git init
git add .
git status
git commit -m 'auto update Infinity'
echo '--------commit successfully--------'
git push -f https://github.com/Shuaiwen-Cui/MCU_NODE_ESP32.git main
# git push -u https://github.com/Shuaiwen-Cui/MCU_NODE_ESP32.git main
# git remote add origin https://github.com/Shuaiwen-Cui/MCU_NODE_ESP32.git
# git push -u origin main
echo '--------push to GitHub successfully--------'
cd ./MCU_DOC/
mkdocs gh-deploy
echo '--------deployed to Github Pages sucessfully--------'