Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
Add deploy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Oct 10, 2016
1 parent d2484f7 commit f377539
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
language: node_js
node_js:
- "stable"

env:
global:
- GIT_NAME: Travis CI
- GIT_EMAIL: [email protected]
- GITHUB_REPO: windtoday/windtoday.github.io
- GIT_SOURCE: src/www
- GIT_BRANCH: master

after_script:
- |
declare exitCode;
# -- [1] -------------------------------------------------------
$(npm bin)/travis-after-all
exitCode=$?
# -- [2] -------------------------------------------------------
if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" -a $exitCode -eq 0 ]; then
npm install git-update-ghpages
npm run build && ./node_modules/.bin/git-update-ghpages -e
fi
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"shorthand-loader": "~1.0.0",
"standard": "~8.0.0",
"style-loader": "~0.13.1",
"travis-after-all": "~1.4.4",
"url-loader": "~0.5.7",
"webpack": "~1.13.2",
"webpack-dev-server": "~1.15.1"
Expand Down

0 comments on commit f377539

Please sign in to comment.