shakyShane / jekyll-gulp-sass-browser-sync

A starter project including full setup for Jekyll, GulpJS, SASS & BrowserSync
727 stars 169 forks source link

Request: Implement gulp-gh-pages #8

Closed ColeTownsend closed 10 years ago

ColeTownsend commented 10 years ago

It would be awesome to also have gulp-gh-pages in here. This would be the complete package.

shakyShane commented 10 years ago

YES!

I need knowledge of gh-pages for another upcoming project - do you have experience with it? if so, perhaps you could submit a branch showing me how it works? :)

ColeTownsend commented 10 years ago

I'm actually having a bit of trouble myself! I want to have a _source and public folder but that is creating issues.

http://charliegleason.com has it working although he's using HarpJS to build rather than Jekyll.

ColeTownsend commented 10 years ago

Got it.

With a _config.yml set up like so:

source: _source
destination: public

the lines in gulpfile.js for `gulp-gh-pages

/**
 * Push build to gh-pages
 */
gulp.task('deploy', ['jekyll-build'], function () {
  gulp.src("./public/**/*")
    .pipe(deploy())
    .pipe(gulp.dest('./public'))
});
shakyShane commented 10 years ago

@ColeTownsend - perhaps you could add a section to the Readme.md with your code examples

ColeTownsend commented 10 years ago

On it.