Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
fix(gulpfile): add release-git task with git push, --tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchentw committed Jan 17, 2014
1 parent da8e81a commit 3d96595
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gulpfile.ls
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ gulp.task 'before-release' <[ uglify ]> ->
.pipe gulp-exec('git add -A')
.pipe gulp-exec("git commit -m '#{ commitMsg }'")
.pipe gulp-exec("git tag -a v#{ jsonFile.version } -m '#{ commitMsg }'")

gulp.task 'release-git' <[ before-release ]> ->
return gulp.src 'package.json'
.pipe gulp-exec('git push')
.pipe gulp-exec('git push --tags')

gulp.task 'release-gem' <[ before-release ]> ->
return gulp.src 'package.json'
Expand All @@ -110,7 +114,7 @@ gulp.task 'watch' ->
gulp.watch 'src/*.ls' !->
gulp.run 'test' # optimize ...

gulp.task 'release' <[ release-gem release-npm ]>
gulp.task 'release' <[ release-git release-gem release-npm ]>
/*
* Public tasks end
*
Expand Down

0 comments on commit 3d96595

Please sign in to comment.