Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On gem release, add instructions to author a Github Release #324

Merged
merged 1 commit into from
Aug 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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