Skip to content

Commit

Permalink
On gem release, add instructions to author a Github Release (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
bensheldon authored Aug 11, 2021
1 parent 4833fb7 commit 9c2b9f7
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,22 @@ task :release, [:version_bump] do |_t, args|
system! "git commit -m \"Release good_job v#{GoodJob::VERSION}\""
system! "git tag v#{GoodJob::VERSION}"

puts "\n== Next steps =="
puts "Run the following commands:\n\n"
puts " 1. Push commit and tag to Github:"
puts " $ git push origin && git push origin --tags"
puts " 2. Push to Rubygems.org:"
puts " $ gem release"
require 'cgi'
changelog_anchor = "v#{GoodJob::VERSION.delete('.')}-#{Time.now.utc.strftime('%Y-%m-%d')}"
changelog_url = "https://github.com/bensheldon/good_job/blob/main/CHANGELOG.md##{changelog_anchor}"

puts <<~INSTRUCTIONS
== Next steps ==
Run the following commands:
1. Push commit and tag to Github:
$ git push origin && git push origin --tags
2. Push to Rubygems.org:
$ gem release
3. Author a Github Release:
https://github.com/bensheldon/good_job/releases/new?tag=v#{GoodJob::VERSION}&body=#{CGI.escape "[Changelog](#{changelog_url})"}
INSTRUCTIONS
end

require 'rspec/core/rake_task'
Expand Down

0 comments on commit 9c2b9f7

Please sign in to comment.