Skip to content

Commit

Permalink
feat(gh-pages): Add gh-pages deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelastic committed Nov 26, 2015
1 parent bdac9dd commit ab1a299
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -10,7 +10,8 @@
"build": "./scripts/build.sh",
"release": "./scripts/release.sh",
"lint": "eslint .",
"test": "npm run lint"
"test": "npm run lint",
"gh-pages": "./scripts/gh-pages"
},
"author": "Algolia <support@algolia.com> (https://github.com/algolia/)",
"license": "MIT",
Expand All @@ -26,6 +27,7 @@
"eslint-config-airbnb": "^0.1.0",
"eslint-config-algolia": "^4.2.0",
"eslint-plugin-react": "^3.5.1",
"gh-pages": "^0.5.0",
"json": "^9.0.3",
"mversion": "^1.10.1",
"npm-shrinkwrap": "^200.4.0",
Expand Down
8 changes: 8 additions & 0 deletions scripts/gh-pages
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

rm -rf node_modules/gh-pages/.cache

cd ./docs
bundle install
bundle exec jekyll build
gh-pages --dist docs/_site --branch gh-pages

0 comments on commit ab1a299

Please sign in to comment.