Skip to content

Instantly share code, notes, and snippets.

@ctdean
Created May 3, 2013 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ctdean/5515083 to your computer and use it in GitHub Desktop.
Save ctdean/5515083 to your computer and use it in GitHub Desktop.
namespace :deploy do
desc "Write the name of the tag that we're deploying to a VERSION file"
task :write_version_file do
run "git describe > #{release_path}/VERSION"
end
end
before "deploy:finalize_update", "deploy:write_version_file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment