Skip to content

Commit

Permalink
Updated gulpfile to do tagging after push
Browse files Browse the repository at this point in the history
  • Loading branch information
lindell committed May 9, 2016
1 parent c07cef7 commit 3838d6a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var clean = require('gulp-clean');
var gulpWebpack = require('webpack-stream');
var webpack = require('webpack');


gulp.task("clean", function(){
return gulp.src("bin/", {read: false})
.pipe(clean());
Expand Down Expand Up @@ -76,12 +77,9 @@ gulp.task('git-release', ['compress'], function(cb){
gulp.src(['./package.json', './bower.json', './bin/'])
.pipe(git.add({args: '--all'}))
.pipe(git.commit(message));

git.tag(v, message, function(error){
if(error){
console.error(error);
}
git.push('origin', 'master', function(){

git.push('origin', 'master', function(){
git.tag(v, message, function(){
git.push('origin', 'master', {args: '--tags'}, cb);
});
});
Expand Down

0 comments on commit 3838d6a

Please sign in to comment.