Skip to content

Commit 62acf33

Browse files
author
xieyankun
committed
feat: 添加deploy.sh
1 parent 85c29ef commit 62acf33

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# vue-analysis
22

3-
0000
3+
Vue.js 源码分析

build/deploy.sh

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env sh
2+
3+
set -e
4+
5+
npm run docs:build
6+
7+
cd docs/.vuepress/dist
8+
9+
git init
10+
git config user.name 'xieyankun1'
11+
git config user.email '[email protected]'
12+
git add -A
13+
git commit -m 'deploy'
14+
15+
git push -f [email protected]:jd-smart-fe/vue-analysis.git master:gh-pages
16+
17+
cd -

docs/.vuepress/dist

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit c12304ca408507ad0f459c4e9a8f76938f823ee6

docs/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ features:
1313
footer: MIT Licensed | Copyright © 2018-present Evan You
1414
---
1515

16-
<!-- # Vue.js 源码分析 -->
1716

1817

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"scripts": {
1010
"test": "echo \"Error: no test specified\" && exit 1",
1111
"docs:dev": "vuepress dev docs",
12-
"docs:build": "vuepress build docs"
12+
"docs:build": "vuepress build docs",
13+
"deploy": "sh build/deploy.sh"
1314
},
1415
"repository": {
1516
"type": "git",

0 commit comments

Comments
 (0)