Skip to content

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.

  1. Make sure all changes you want are merged into the master branch.
  2. Create a new branch off master for the version bump, e.g. release-x.y.z
  3. Update the stableVersion property in gradle.properties to be x.y.z
  4. Run ./gradlew build to re-generate the docs and check that everything works.
  5. Create a pull request from the branch. This runs a build on Travis CI.
  6. 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, no v prefix or anything.)
  7. 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.
  8. Update the release notes on GitHub to provide some info about what is new/changed/fixed in this new version.
  9. 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.
  10. Merge the pull request.
Clone this wiki locally