Browse files

Git tag at the very end of cake publish.

  • Loading branch information...
1 parent 61e43e9 commit 5b3db2c9229394baca65ac6b34a0055e66749f25 @assaf committed Feb 17, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 Cakefile
View
14 Cakefile
@@ -200,13 +200,6 @@ task "publish", "Publish new version (Git, NPM, site)", ->
fs.readFile "package.json", "utf8", (err, package)->
package = JSON.parse(package)
- # Create a tag for this version and push changes to Github.
- log "Tagging v#{package.version} ...", green
- exec "git tag v#{package.version}", (err, stdout, stderr)->
- log stdout, green
- exec "git push --tags origin master", (err, stdout, stderr)->
- log stdout, green
-
# Publish documentation, need these first to generate man pages,
# inclusion on NPM package.
generateDocs (err)->
@@ -219,5 +212,12 @@ task "publish", "Publish new version (Git, NPM, site)", ->
log stdout, green
onerror err
+ # Create a tag for this version and push changes to Github.
+ log "Tagging v#{package.version} ...", green
+ exec "git tag v#{package.version}", (err, stdout, stderr)->
+ log stdout, green
+ exec "git push --tags origin master", (err, stdout, stderr)->
+ log stdout, green
+
# We can do this in parallel.
publishDocs onerror

0 comments on commit 5b3db2c

Please sign in to comment.