Skip to content

Instantly share code, notes, and snippets.

@hubgit
Created March 23, 2015 23:50
Show Gist options
  • Save hubgit/2cd2cc6334006f8e0520 to your computer and use it in GitHub Desktop.
Save hubgit/2cd2cc6334006f8e0520 to your computer and use it in GitHub Desktop.
Deploy a Polymer app to GitHub Pages using Gulp and node's gh-pages module
// npm install gh-pages --save-dev
var ghpages = require('gh-pages');
gulp.task('deploy', ['default'], function(cb) {
ghpages.publish(path.join(process.cwd(), 'dist'), cb);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment