-
Notifications
You must be signed in to change notification settings - Fork 23
Publishing a release
Gregory Haskins edited this page Sep 1, 2017
·
6 revisions
These are the rough steps for publishing a new version of Spectrum.
- Make sure all changes you want are merged into the
master
branch. - Create a new branch off master for the version bump, e.g.
release-x.y.z
- Update the
stableVersion
property ingradle.properties
to be x.y.z - Run
./gradlew build
to re-generate the docs and check that everything works. - Create a pull request from the branch. This runs a build on Travis CI.
- When everything looks good and runs green, create an annotated tag in Git to mark the official version.
git tag -a x.y.z -m "Release version x.y.z"
(tags should just be semver numbers, nov
prefix or anything.) - Push the tag to GitHub (
git push origin x.y.z
). This triggers another Travis CI build, which will publish the release artifacts. Publishing only happens on annotated tag builds. - Update the release notes on GitHub to provide some info about what is new/changed/fixed in this new version.
- Wait for the release to fully propagate JCenter and Maven Central. Otherwise the installation instructions would point to a version isn't available for download yet.
- Merge the pull request.