forked from vuejs/v2.vuejs.org
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Showing
7 changed files
with
44 additions
and
4,124 deletions.
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,25 @@ | ||
SOURCE_BRANCH="cn" | ||
|
||
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then | ||
echo "Skipping deploy; just doing a build and linting links/prose/js." | ||
# skip fetching loaders/plugins in cn version | ||
# npm run fetch | ||
npm run build | ||
# npm run lint:prose | ||
# npm run lint:links | ||
# npm test | ||
exit 0 | ||
fi | ||
|
||
npm run build | ||
|
||
git config --global user.name "Travis CI" | ||
git config --global user.email "[email protected]" | ||
git remote set-url origin [email protected]:docschina/vuejs.org.git | ||
|
||
openssl aes-256-cbc -K $encrypted_7933be997dd9_key -iv $encrypted_7933be997dd9_iv -in .ci/deploy_key.enc -out .ci/deploy_key -d | ||
chmod 600 .ci/deploy_key | ||
eval `ssh-agent -s` | ||
ssh-add .ci/deploy_key | ||
|
||
npm run deploy |
Binary file not shown.
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ node_modules/ | |
public/ | ||
.deploy*/ | ||
src/_drafts | ||
.avoscloud/ | ||
.avoscloud/ | ||
package-lock.json |
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,11 @@ | ||
branches: | ||
only: | ||
- cn | ||
language: node_js | ||
node_js: | ||
- "8" | ||
script: | ||
- bash ./.ci/deploy.sh | ||
sudo: required | ||
install: | ||
- npm install |
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 |
---|---|---|
|
@@ -136,9 +136,10 @@ markdown: | |
|
||
# Deployment | ||
## Docs: http://zespia.tw/hexo/docs/deployment.html | ||
# deploy: | ||
# type: git | ||
# repository: [email protected]:vuejs/vuejs.org.git | ||
deploy: | ||
type: git | ||
repository: [email protected]:docschina/vuejs.org.git | ||
branch: gh-pages | ||
|
||
feed: | ||
type: atom | ||
|
Oops, something went wrong.