-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
45 lines (32 loc) · 895 Bytes
/
deploy.sh
File metadata and controls
45 lines (32 loc) · 895 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
#!/usr/bin/env sh
# 发生错误时终止
#set -e
# 构建
npm run build
# 进入构建文件夹
cd dist
# 如果你要部署到自定义域名
# echo 'www.example.com' > CNAME
git init
git config user.name "maliut"
git config user.email "lqn619@163.com"
git add -A
git commit -m 'deploy'
# 如果你要部署在 https://<USERNAME>.github.io/<REPO>
git push -f git@github.com:flora-studio/es2.git master:gh-pages
git push -f https://gitee.com/flora-studio/es2.git master:gh-pages
cd -
# build for deploy as root folder
npm run build-root
# 进入构建文件夹
cd dist
# 如果你要部署到自定义域名
# echo 'www.example.com' > CNAME
git init
git config user.name "maliut"
git config user.email "lqn619@163.com"
git add -A
git commit -m 'deploy'
# 如果你要部署在 https://<USERNAME>.github.io/<REPO>
git push -f git@github.com:maliut/es2-deploy.git master:master
cd -