Skip to content

Instantly share code, notes, and snippets.

@rdj
Created February 23, 2010 20:26
Show Gist options
  • Select an option

  • Save rdj/312664 to your computer and use it in GitHub Desktop.

Select an option

Save rdj/312664 to your computer and use it in GitHub Desktop.
namespace :git do
task :tag_release do
match = release_path.match( %r{ releases/(\d+) }xm )
release_tag = "releases/#{match[1]}"
run_locally "git tag #{release_tag}"
run_locally "git push --tags"
end
end
after 'deploy:update', 'git:tag_release'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment