Skip to content

Commit

Permalink
fix tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
bibendi committed Feb 26, 2015
1 parent 075cb56 commit 620f3a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/apress/gems/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def upload
def tag
tag_name = "v#{version}"
spawn "git tag -a -m \"Version #{version}\" #{tag_name}"
spawn 'git push --tags upstream'
puts "Git tag generated to #{tag_name}"
end

Expand All @@ -62,6 +63,7 @@ def release
changelog
update_version
commit
tag
build
upload
end
Expand Down Expand Up @@ -97,7 +99,6 @@ def commit
puts 'Commit and push changes'
spawn "git diff --cached --exit-code > /dev/null || git commit -m \"Release #{version}\" || echo -n"
spawn 'git push upstream master'
spawn 'git push --tags upstream'
end

def validate_version
Expand Down

0 comments on commit 620f3a3

Please sign in to comment.