mhulse / gh-boiler

Common GitHub boilerplate files I use to kick-start new repositories.
Apache License 2.0
8 stars 3 forks source link

Publish to gh-pages #87

Open mhulse opened 8 years ago

mhulse commented 8 years ago

Cool JS to publish to GH pages branch using node:

https://github.com/aframevr/aframe/blob/master/scripts/gh-pages.js

Publishing to GitHub Pages

To publish to https://aframevr.github.io/aframecore/:

npm run ghpages

To publish to https://your_username.github.io/aframe/:

npm run ghpages your_username

… and in package.json:

{
  "scripts": {
    "ghpages": "node ./scripts/gh-pages",
  }
}

Would be nice to include this code in this repo somehow?