Skip to content

Commit b6c6aae

Browse files
authored
Merge pull request #99 from changyuqing/master
增加文档自动构建和手动构建
2 parents 62c7549 + ef91824 commit b6c6aae

File tree

91 files changed

+123
-1995
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+123
-1995
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ test/coverage
2323
/dist
2424
/deploy-baidu
2525
/coverage
26+
gh-pages/
2627
.vscode/

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
sudo: required
2+
language: node_js
3+
node_js: stable
4+
script: bash ./deploy.sh
5+
branches:
6+
only:
7+
- master
8+
notifications:
9+
email: true

deploy.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env sh
2+
3+
# 确保脚本抛出遇到的错误
4+
set -e
5+
6+
# 生成静态文件
7+
yarn run build-website
8+
9+
# 进入生成的文件夹
10+
cd gh-pages/
11+
12+
git init
13+
git add -A
14+
git commit -m 'deploy'
15+
16+
# 如果发布到 https://<USERNAME>.github.io
17+
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
18+
19+
# 如果发布到 https://<USERNAME>.github.io/<REPO>
20+
# 手动部署
21+
# git push -f git@github.com:Neveryu/web-bookmarks.git master:gh-pages
22+
# 自动部署
23+
git push -f "https://${access_token}@github.com/${username}/form-generator-iview.git" master:gh-pages
24+
25+
cd -

docs/index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/static/font/cool-background.f4bb6a3.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)