-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c65ae7a
commit 0288a6b
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
language: node_js | ||
sudo: required | ||
node_js: | ||
- 8.11.3 | ||
branch: master | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
|
||
before_install: | ||
- export TZ='Asia/Shanghai' # 设置时区 | ||
|
||
script: | ||
- ./vuepress-deploy.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,17 @@ git init | |
git add -A | ||
git commit -m 'deploy' | ||
|
||
# 如果使用 travis 持续集成 | ||
git config --local user.name "杨俊宁" | ||
git config --local user.email {[email protected]} | ||
|
||
# 如果发布到 https://<USERNAME>.github.io | ||
# git push -f [email protected]:<USERNAME>/<USERNAME>.github.io.git master | ||
|
||
# 如果发布到 https://<USERNAME>.github.io/<REPO> | ||
git push -f [email protected]:youngjuning/wxPromise.git master:gh-pages | ||
# git push -f [email protected]:youngjuning/wxPromise.git master:gh-pages | ||
|
||
# 如果使用 travis 持续集成 | ||
git push -f https://${access_token}@github.com/youngjuning/wxPromise.git master:gh-pages | ||
|
||
cd - |