diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9a39870 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,11 @@ +name: Release gem to RubyGems.org + +on: + workflow_dispatch: + +jobs: + release: + uses: SOFware/reissue/.github/workflows/shared-ruby-gem-release.yml@main + with: + git_user_email: 'gems@sofwarellc.com' + git_user_name: 'SOFware' diff --git a/README.md b/README.md index 55dfed6..2702fa0 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,9 @@ cycle.to_s # => "3x in the prior 3 days" After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. -To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org). +To install this gem onto your local machine, run `bundle exec rake install`. + +This project is managed with [Reissue](https://github.com/SOFware/reissue). Releases are automated via the [shared release workflow](https://github.com/SOFware/reissue/blob/main/.github/workflows/SHARED_WORKFLOW_README.md). Trigger a release by running the "Release gem to RubyGems.org" workflow from the Actions tab. ## Contributing diff --git a/Rakefile b/Rakefile index 4408b44..ea139e4 100644 --- a/Rakefile +++ b/Rakefile @@ -14,4 +14,5 @@ require "reissue/gem" Reissue::Task.create do |task| task.version_file = "lib/sof/cycle/version.rb" + task.push_finalize = :branch end