Skip to content

Commit

Permalink
Merge pull request #275 from segmentio/MichaelGHSeg/release_2_5_0
Browse files Browse the repository at this point in the history
Release 2.5.0.
  • Loading branch information
MichaelGHSeg authored Oct 7, 2024
2 parents bb3aed9 + 5052ed9 commit 1027bbd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 25 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Ruby Gem

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
build:
Expand Down
25 changes: 5 additions & 20 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,13 @@
We automatically push tags to Rubygems via CI.

Pre-releases
Release
============

- Make sure you're on the latest `master`
- Bump the version in [`version.rb`](lib/segment/analytics/version.rb)
- Update [`History.md`](History.md)
- Commit these changes. `git commit -am "Release x.y.z.pre"`
- Tag the pre-release. `git tag -a -m "Version x.y.z.pre" x.y.z.pre`
- `git push -u origin master && git push --tags`. The tagged commit will be
pushed to RubyGems via Travis


Promoting pre-releases
======================

- Find the tag for the pre-release you want to promote. Use `git tag --list
'*.pre'` to list all pre-release tags
- Checkout that tag. `git checkout tags/x.y.z.pre`
- Update the version in [`version.rb`](lib/segment/analytics/version.rb) to not
include the `.pre` suffix
- Commit these changes. `git commit -am "Promote x.y.z.pre"`
- Commit these changes. `git commit -am "Release x.y.z."`
- Tag the release. `git tag -a -m "Version x.y.z" x.y.z`
- `git push -u origin master && git push --tags`. The tagged commit will be
pushed to RubyGems via Travis
- On `master`, add an entry to [`History.md`](History.md) under `x.y.z` that
says 'Promoted pre-release to stable'
- `git push -u origin master && git push --tags
- Run the publish action on Github

2 changes: 1 addition & 1 deletion lib/segment/analytics/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Segment
class Analytics
VERSION = '2.4.2'
VERSION = '2.5.0'
end
end

0 comments on commit 1027bbd

Please sign in to comment.