This repository was archived by the owner on Oct 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Release
Mateusz Paprocki edited this page Aug 7, 2015
·
8 revisions
Assuming that the current development version is 0.3-SNAPSHOT:
- Start from a clean repository (i.e. run
git deep-clean). - Remove
-SNAPSHOTsuffix inversion.sbt. - Update
README.md("Usage" section and links to scaladoc). ./sbt +test +doc- Make sure everything is green under 2.10 and 2.11.
- Commit changes with
bokeh-scala 0.3commit message. - Tag this commit as
v0.3and sign using your PGP key. ./sbt +publishSigned +upload- Go to
oss.sonatype.org, review changes and finalize release. - Increment version number in
version.sbtto0.4-SNAPSHOT. - Commit changes with
New release cyclecommit message. -
./sbt +publish(publish new snapshot to make scaladoc link alive). - Update
bokeh-scala-sample, by using0.3inversionandlibraryDependenciesinbuild.sbt. - Add release notes to
v0.3tag on GitHub. - Send announcement for the release to bokeh@continuum.io.
Note that step 8. is irreversible. Artifacts published to the central repository can't be removed (for good reasons). If the release is defunct, just fix the problem and create a new release. Let people know in the announcement there's a version that shouldn't be used.
tl;dr:
$ VERSION=$(grep --perl-regexp --only-matching "\d+\.\d+" version.sbt)
$ git deep-clean
$ sed -i s/-SNAPSHOT// version.sbt
$ ./sbt +test +doc || exit
$ git add version.sbt
$ git commit -m "bokeh-scala $VERSION"
$ git tag -s -m "bokeh-scala $VERSION" v$version
$ ./sbt +publishSigned +upload
$ sed 's/\([0-9]\+\.\)\([0-9]\+\)/echo "\1$((\2+1))-SNAPSHOT"/e' version.sbt
$ git add version.sbt
$ git commit -m "New release cycle"
$ git push origin --tags
Useful literature: