diff --git a/lib/easy/deployment/capistrano.rb b/lib/easy/deployment/capistrano.rb index d18d811..4dd1791 100644 --- a/lib/easy/deployment/capistrano.rb +++ b/lib/easy/deployment/capistrano.rb @@ -108,7 +108,7 @@ def current_git_branch end desc "[internal] Annotate release into version.txt" - task :annotate_release do + task :annotate_release, :except => { :no_release => true } do git_revision = `git rev-parse #{branch} 2> /dev/null`.strip version_info = "Branch/Tag: #{branch}\\nRevision: #{git_revision}\\nDeployed To: #{stage}\\n\\nDeployed At: #{Time.now}\\nBy: #{`whoami`.chomp}\\n" run %Q(printf "#{version_info}" > #{release_path}/version.txt)