-
-
Notifications
You must be signed in to change notification settings - Fork 70
Publishing Releases
See: http://www.scala-sbt.org/0.13/docs/Using-Sonatype.html
See: http://www.scala-sbt.org/sbt-pgp/
Add the following to your ~/.sbt/0.13/plugins/gpg.sbt
file:
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
If you do not currently have gpg installed you may need to install it (on Mac: brew install gpg
). Once installed you'll need to generate a key with gpg --gen-key
. After generating a key run gpg --export --armor
and upload the key to http://pgp.mit.edu/ .
Create .sbt/0.13/sonatype.sbt
with your credentials as described here: https://github.com/xerial/sbt-sonatype
(1) Remove the snapshot version and perform a commit.
(2) Verify that all dependencies are on a release version, in particular dagr
.
(3) Perform the release
sbt +publishSigned
sbt sonatypeRelease
(4) Bump the version number and add -SNAPSHOT
. Do so for any dependencies which we want to use the snapshot version, in particular dagr
.
Please note that sbt sonatypeRelease
does the following:
sbt sonatypeClose
sbt sonatypePromote
(5) Add a release on github: https://github.com/fulcrumgenomics/fgbio/releases
- Run the
run_metrics_doclet.sh
script to generatetarget/metrics.md
- Run
java -cp target/scala-2.12/fgbio-{version}.jar com.fulcrumgenomics.internal.InternalTools BuildToolDocs -o /tmp/docs.{version}
- Checkout the
gh-pages
branch of the repository - Copy
target/metrics.md
tometrics/{version}/index.md
(you will need tomkdir metrics/{version}
) - Copy (recursively)
/tmp/docs.{version}
totools/{version}
- In each of the
tools
andmetrics
directories delete thelatest
symlink and re-create it using a relative link to the new version. E.g.cd tools && rm latest && ln -s {version} latest && cd ..
. - Add the new files to git. E.g.
git add tools/{version} mertrics/{version}
. - Edit the
index.md
file to change the JAR version (ex.0.1.4
to0.2.0
). - Commit the changes to the documentation and
git push
the gh-pages branch.