-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
40 lines (35 loc) · 911 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
29
30
31
32
33
34
35
36
37
38
39
40
##!/usr/bin/env sh
#
## abort on errors
#set -e
#
## build
#npm run build
#
## navigate into the build output directory
#cd dist
#
## if you are deploying to a custom domain
## echo 'www.example.com' > CNAME
#
#git init
#git add .
#git commit -m 'deploy'
#
## if you are deploying to https://<USERNAME>.github.io
## git push -f [email protected]:<USERNAME>/<USERNAME>.github.io.git main
#
## if you are deploying to https://<USERNAME>.github.io/<REPO>
#git push -f [email protected]:zhihuifanqiechaodan/cover-image.git master:gh-pages
## "deploy": "sh deploy.sh" package.json 里配置scripts命令
#cd -
#!/usr/bin/env sh
# abort on errors
set -e
git add .
git commit -m 'feat: 更新展示'
# if you are deploying to https://<USERNAME>.github.io
# git push -f [email protected]:<USERNAME>/<USERNAME>.github.io.git main
# if you are deploying to https://<USERNAME>.github.io/<REPO>
git push -f -u origin main
cd -