forked from emmapersky/one-click-orgs
-
Notifications
You must be signed in to change notification settings - Fork 12
Making a release
Chris Mear edited this page Feb 19, 2014
·
3 revisions
Here is how to cut a release of One Click Orgs, deploy it, and announce it. The examples assume we are releasing version 1.4.5..
- Make sure you're releasing from the correct branch (i.e.
v1.x
ormaster
). - Does the tip of the branch contain the state that you want to release? Great! Go to step 5.
- Make a
release-1.4.5
branch based on the latest commit that can't reach commits you don't want to include in the release. - If there are commits you want in the release which aren't reachable from your
release-1.4.5
branch, cherry-pick them into the release branch. - Run the tests:
rake spec cucumber
. If there are failures, fix them, then go to step 5. - Update the version number in
lib/one_click_orgs/version.rb
. - Update the
CHANGELOG
(based ongit log HEAD ^previous_version
andgit diff previous_version..HEAD
). - Update the
CONTRIBUTORS
list by runningrake oco:contributors
. (If you get duplicate entries, you'll need to update.mailmap
.) - Commit those three changes with a message like "Prep for version 1.4.5."
- Tag the release with a signed tag:
git tag -s v1.4.5
- If you are on a release branch, merge that release branch back to the parent branch (
v1.x
ormaster
). - Push the updated branches, and the new tag:
git push origin v1.x release-1.4.5 v1.4.5
- Check out the deployment branch, e.g.
oneclickorgs-com
- Merge the new release into the deployment branch:
git merge v1.4.5
- Push the deployment branch:
git push oneclickorgs-com
- Deploy with Capistrano:
cap deploy
- Post an announcement to the oneclickorgs-devspace list, including
- The release number
- The changelog for the release
- Confirmation of what version oneclickorgs.com is now running
- A link to the source, and a link to the hosted version
- Thanks to the people who contributed to the release (contributions include code, bug reports, testing, etc.).
- Have a cup of tea.