diff options
| author | Monty Taylor <mordred@inaugust.com> | 2015-08-01 10:06:23 +1000 | 
|---|---|---|
| committer | Monty Taylor <mordred@inaugust.com> | 2015-08-01 10:06:23 +1000 | 
| commit | 4804b190c2cc61f132c28fab6ae5ed72062d3bff (patch) | |
| tree | fef1baeef00ba9c7621d69fbd0e7b0afd1f9c239 /gulpfile.js | |
| parent | cd63f3c0edf3b318ff55d294bce474d550d5f402 (diff) | |
Add git push to release target
Diffstat (limited to 'gulpfile.js')
| -rw-r--r-- | gulpfile.js | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/gulpfile.js b/gulpfile.js index 77664c9..594a3e6 100644 --- a/gulpfile.js +++ b/gulpfile.js | |||
| @@ -308,10 +308,18 @@ | |||
| 308 | recursive: true | 308 | recursive: true | 
| 309 | })); | 309 | })); | 
| 310 | }); | 310 | }); | 
| 311 | |||
| 312 | gulp.task('push', function () { | ||
| 313 | gulp.src(dir.dist) | ||
| 314 | git.push('origin', 'master', function (err) { | ||
| 315 | if (err) throw err; | ||
| 316 | }); | ||
| 317 | }); | ||
| 318 | |||
| 311 | /** | 319 | /** | 
| 312 | * Build the current release package and push it | 320 | * Build the current release package and push it | 
| 313 | */ | 321 | */ | 
| 314 | gulp.task('release', ['package', 'rsync']); | 322 | gulp.task('release', ['package', 'rsync', 'push']); | 
| 315 | 323 | ||
| 316 | /** | 324 | /** | 
| 317 | * Start a local server and serve the application code. This is | 325 | * Start a local server and serve the application code. This is | 
