Skip to content

Commit dd59198

Browse files
authored
Release from travis (#202)
* Add publishing stage * Document that tagging the release should take care of things
1 parent 7c0029c commit dd59198

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.travis.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,18 @@ env:
5454
before_install: curl -Ls https://git.io/jabba | bash && . ~/.jabba/jabba.sh
5555
install: jabba install "$TRAVIS_JDK" && jabba use "$_" && java -Xmx32m -version
5656

57-
script:
58-
# Increasing ReservedCodeCacheSize minimizes scala compiler-interface compile times
59-
- sbt -J-XX:ReservedCodeCacheSize=256M ++$SCALA_VERSION test
57+
stages:
58+
- name: test
59+
- name: release
60+
if: tag =~ ^v AND NOT fork
61+
62+
jobs:
63+
include:
64+
- stage: test
65+
# Increasing ReservedCodeCacheSize minimizes scala compiler-interface compile times
66+
script: sbt -J-XX:ReservedCodeCacheSize=256M ++$SCALA_VERSION test
67+
- stage: release
68+
script: echo $PGP_SECRET | base64 --decode | gpg --import && sbt +publishSigned
6069

6170
before_cache:
6271
- find $HOME/.sbt -name "*.lock" | xargs rm

RELEASING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* the next tag version (e.g. `v0.11`)
55
* title and release description including notable changes
66
* link to the [milestone](https://github.com/lightbend/genjavadoc/milestones) showing an overview of closed issues for this release
7-
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.
7+
2. This should push the release to sonatype from travis
88
3. Login to [Sonatype](https://oss.sonatype.org/) to close and release the repository.
99

1010
## Back-releasing for a new Scala version

0 commit comments

Comments
 (0)