Skip to content

Commit fb9c54b

Browse files
committed
fix:自动发布
1 parent f532cbc commit fb9c54b

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ npm run docs:dev
2121
npm run build
2222
```
2323

24-
[基于ElementUi再次封装基础组件文档](https://wocwin.github.io/blog/)
24+
[基于ElementUi再次封装基础组件文档](https://wocwin.github.io/t-ui/)

deploy.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# 确保脚本抛出遇到的错误
2+
set -e
3+
4+
# 生成静态文件
5+
npm run docs:build
6+
7+
# 进入生成的文件夹
8+
cd docs/.vuepress/dist
9+
10+
git init
11+
git add -A
12+
git commit -m 'deploy'
13+
14+
# 如果发布到 https://<USERNAME>.github.io/<REPO>
15+
git push -f https://github.com/wocwin/t-ui.git master:gh-pages
16+
17+
# git remote add origin https://github.com/wocwin/myVuePress.git
18+
# git push origin --delete gh-pages
19+
# git push origin master:gh-pages
20+
21+
cd -

docs/.vuepress/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
},
1313
themeConfig: {
1414
// 你的GitLab仓库,请正确填写
15-
repo: 'https://github.com/wocwin/blog',
15+
repo: 'https://wocwin.github.io/t-ui/',
1616
// 自定义仓库链接文字。
1717
repoLabel: 'GitHub',
1818
nav: [

0 commit comments

Comments
 (0)