Method: Conan::Deployment::Helpers#git_tag
- Defined in:
- lib/conan/deployment.rb
#git_tag(source, dest) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/conan/deployment.rb', line 25 def git_tag(source, dest) system "git fetch origin --tags" sha1 = `git rev-parse "#{source}"` system %{git update-ref "refs/tags/#{dest}" #{sha1}} system %{git push -f origin tag #{dest}} end |