Skip to content

Commit ab1a299

Browse files
committed
feat(gh-pages): Add gh-pages deploy script
1 parent bdac9dd commit ab1a299

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"build": "./scripts/build.sh",
1111
"release": "./scripts/release.sh",
1212
"lint": "eslint .",
13-
"test": "npm run lint"
13+
"test": "npm run lint",
14+
"gh-pages": "./scripts/gh-pages"
1415
},
1516
"author": "Algolia <support@algolia.com> (https://github.com/algolia/)",
1617
"license": "MIT",
@@ -26,6 +27,7 @@
2627
"eslint-config-airbnb": "^0.1.0",
2728
"eslint-config-algolia": "^4.2.0",
2829
"eslint-plugin-react": "^3.5.1",
30+
"gh-pages": "^0.5.0",
2931
"json": "^9.0.3",
3032
"mversion": "^1.10.1",
3133
"npm-shrinkwrap": "^200.4.0",

scripts/gh-pages

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
rm -rf node_modules/gh-pages/.cache
4+
5+
cd ./docs
6+
bundle install
7+
bundle exec jekyll build
8+
gh-pages --dist docs/_site --branch gh-pages

0 commit comments

Comments
 (0)