Skip to content

Commit

Permalink
Add deploy-to-gh-pages script
Browse files Browse the repository at this point in the history
  • Loading branch information
moroshko committed Jan 5, 2016
1 parent 243a4b4 commit b903c62
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"standalone": "webpack --config webpack.standalone.config.js && webpack --config webpack.standalone-demo.config.js",
"build": "npm run lint && npm test && npm run dist && npm run standalone",
"gh-pages-build": "npm run lint && npm test && npm run demo-dist",
"deploy": "echo 'Not yet'",
"postversion": "git push && git push --tags",
"prepublish": "npm run dist && npm run standalone"
},
Expand Down
13 changes: 13 additions & 0 deletions scripts/deploy-to-gh-pages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -e

git checkout gh-pages
git pull origin gh-pages
git merge master --no-edit
npm run gh-pages-build
cp demo/dist/*.* .
git add app.css autosuggest.css index.html index.js
git commit -m 'Update gh-pages files'
git push origin gh-pages
git checkout master

0 comments on commit b903c62

Please sign in to comment.