From 4804b190c2cc61f132c28fab6ae5ed72062d3bff Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sat, 1 Aug 2015 10:06:23 +1000 Subject: Add git push to release target --- gulpfile.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 77664c9..594a3e6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -308,10 +308,18 @@ recursive: true })); }); + + gulp.task('push', function () { + gulp.src(dir.dist) + git.push('origin', 'master', function (err) { + if (err) throw err; + }); + }); + /** * Build the current release package and push it */ - gulp.task('release', ['package', 'rsync']); + gulp.task('release', ['package', 'rsync', 'push']); /** * Start a local server and serve the application code. This is -- cgit v1.2.3