From e2ef8d991eb105573e0a62cfe9a3eacd0fe60fd0 Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Fri, 31 Jul 2015 09:53:58 +1000 Subject: Added gh-pages invocation for release --- gulpfile.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index 4ea26d3..cffd79c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -8,6 +8,7 @@ var gulp = require('gulp'); var git = require('gulp-git'); + var ghPages = require('gulp-gh-pages'); var filter = require('gulp-filter'); var less = require('gulp-less'); var webserver = require('gulp-webserver'); @@ -215,6 +216,19 @@ */ gulp.task('package', ['package:html', 'package:hbs', 'package:libs']); + /** + * Push the contents of the dist directory to gh-pages. + */ + gulp.task('gh-pages', function () { + return gulp.src(dir.dist + '/**/*') + .pipe(ghPages()); + }); + + /** + * Build the current release package and push it to gh-pages. + */ + gulp.task('release', ['package', 'gh-pages']); + /** * Start a local server and serve the application code. This is * equivalent to opening index.html in a browser. -- cgit v1.2.3