diff options
| -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 |
