Prepare release

This commit is contained in:
benweet 2014-08-31 21:05:34 +01:00
parent bd9ef71a45
commit 3e6c1590dd

View File

@ -230,19 +230,22 @@ gulp.task('bump-patch', bumpTask('patch'));
gulp.task('bump-minor', bumpTask('minor')); gulp.task('bump-minor', bumpTask('minor'));
gulp.task('bump-major', bumpTask('major')); gulp.task('bump-major', bumpTask('major'));
gulp.task('commit', function() { gulp.task('git-add', function() {
return gulp.src('./public/res-min/**/*') return gulp.src('./public/res-min/**/*')
.pipe(git.add()) .pipe(git.add());
.pipe(git.commit('Prepare release', {args: '-A'}));
}); });
gulp.task('tag', function() { gulp.task('git-commit', function() {
git.commit('Prepare release', { args: '-a' }).end();
});
gulp.task('git-tag', function() {
var tag = 'v' + getVersion(); var tag = 'v' + getVersion();
util.log('Tagging as: ' + util.colors.cyan(tag)); util.log('Tagging as: ' + util.colors.cyan(tag));
git.tag(tag, 'Version ' + getVersion()); git.tag(tag, 'Version ' + getVersion());
}); });
gulp.task('push', function() { gulp.task('git-push', function() {
git.push('origin', 'master', { args: ' --tags' }).end(); git.push('origin', 'master', { args: ' --tags' }).end();
}); });
@ -251,9 +254,10 @@ function releaseTask(importance) {
return runSequence( return runSequence(
'bump-' + importance, 'bump-' + importance,
'default', 'default',
'commit', 'git-add',
'tag', 'git-commit',
'push'); 'git-tag',
'git-push');
}; };
} }