https://github.com/tschaub/gh-pages
Publish files to a gh-pages branch on GitHub

install

1
npm install gh-pages --save-dev

config

add following to package.json
-d : base path of static files

1
2
3
"scripts": {
"deploy": "gh-pages -d dist"
}

deploy

1
npm run deploy