From dd5919866af85cceb9c43df9a83aa82c7f932667 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Tue, 1 Oct 2019 16:52:13 +0200 Subject: [PATCH] Release from travis (#202) * Add publishing stage * Document that tagging the release should take care of things --- .travis.yml | 15 ++++++++++++--- RELEASING.md | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5fe278a..3e35ae8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,9 +54,18 @@ env: before_install: curl -Ls https://git.io/jabba | bash && . ~/.jabba/jabba.sh install: jabba install "$TRAVIS_JDK" && jabba use "$_" && java -Xmx32m -version -script: - # Increasing ReservedCodeCacheSize minimizes scala compiler-interface compile times - - sbt -J-XX:ReservedCodeCacheSize=256M ++$SCALA_VERSION test +stages: + - name: test + - name: release + if: tag =~ ^v AND NOT fork + +jobs: + include: + - stage: test + # Increasing ReservedCodeCacheSize minimizes scala compiler-interface compile times + script: sbt -J-XX:ReservedCodeCacheSize=256M ++$SCALA_VERSION test + - stage: release + script: echo $PGP_SECRET | base64 --decode | gpg --import && sbt +publishSigned before_cache: - find $HOME/.sbt -name "*.lock" | xargs rm diff --git a/RELEASING.md b/RELEASING.md index df34471..936503b 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -4,7 +4,7 @@ * the next tag version (e.g. `v0.11`) * title and release description including notable changes * link to the [milestone](https://github.com/lightbend/genjavadoc/milestones) showing an overview of closed issues for this release -2. Checkout the newly created tag and publish the release by running `sbt +publishSigned`. You will have to have Sonatype OSS repository rights to publish under `com.typesafe` organisation. +2. This should push the release to sonatype from travis 3. Login to [Sonatype](https://oss.sonatype.org/) to close and release the repository. ## Back-releasing for a new Scala version