Skip to content
Merged
Show file tree
Hide file tree
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
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