Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Git tag at the very end of cake publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
assaf committed Feb 18, 2011
1 parent 61e43e9 commit 5b3db2c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Cakefile
Expand Up @@ -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)->
Expand All @@ -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.