Skip to content

Instantly share code, notes, and snippets.

@bymathias
Created June 20, 2015 13:45
Show Gist options
  • Save bymathias/667d179a23121212f447 to your computer and use it in GitHub Desktop.
Save bymathias/667d179a23121212f447 to your computer and use it in GitHub Desktop.
/* gh-pages task */
var ghPages = require('gh-pages');
module.exports = function(gulp, gp, config) {
'use strict';
gulp.task('ghpages', function(done) {
ghPages.publish(config.paths.destRoot, {
dotfiles: true,
branch: 'gh-pages',
message: 'Release v' + config.version,
// repo: config.repository.url,
logger: function(message) {
gp.util.log(message);
}
}, done);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment