Skip to content

Commit

Permalink
feat(travis): add auto deploy from Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Jun 5, 2016
1 parent e569f00 commit c2b303d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
sudo: false
language: node_js
node_js: "stable"
node_js: stable
env:
global:
- GH_USER_EMAIL="[email protected]"
- GH_USER_NAME="azu"
after_success:
- |
$(npm bin)/set-up-ssh --key "$encrypted_cee6f610cc35_key" \
--iv "$encrypted_cee6f610cc35_iv" \
--path-encrypted-key ".travis/github_deploy_key.enc"
$(npm bin)/update-branch --commands "npm run build:website"
--commit-message "Update website [skip ci]"
--directory "website/public"
--distribution-branch "gh-pages"
--source-branch "master"
Binary file added .travis/github_deploy_key.enc
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"test": "mocha test/ website/test/",
"build": "NODE_ENV=production babel src --out-dir lib --source-maps",
"watch": "babel src --out-dir lib --watch --source-maps",
"prepublish": "npm run --if-present build"
"prepublish": "npm run --if-present build",
"build:website": "(cd website && npm i && npm run build"
},
"keywords": [
"morpheme",
Expand Down

0 comments on commit c2b303d

Please sign in to comment.