Skip to content

Commit 6a2b940

Browse files
committed
Use publishSigned in the release process.
1 parent fa0af53 commit 6a2b940

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

release.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
#
77
# % cat ~/.sbt/0.13/publish.sbt
88
# credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", "<user>", "<pass>")
9+
#
10+
# Also requires the sbt-pgp plugin installed globally to provide the `publishSigned` command.
11+
#
12+
# % cat ~/.sbt/0.13/plugins/gpg.sbt
13+
# addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.1")
914

1015
function sbt211() {
1116
sbt 'set scalaVersion := "2.11.0-M6"' 'set scalaBinaryVersion := scalaVersion.value' $@
@@ -17,7 +22,7 @@ die () {
1722
}
1823

1924
CHECK=";clean;test;publishLocal"
20-
RELEASE=";clean;test;publish"
25+
RELEASE=";clean;test;publishSigned"
2126
VERSION=`gsed -rn 's/version :=.*"(.+).*"/\1/p' build.sbt`
2227
[[ -n "$(git status --porcelain)" ]] && die "working directory is not clean!"
2328

@@ -30,6 +35,6 @@ cat <<EOM
3035
Released! For non-snapshot releases:
3136
- tag: git tag -s -a v$VERSION -m "scala-async $VERSION"
3237
- push tag: git push origin v$VERSION
33-
- close the staging repository: https://oss.sonatype.org
38+
- close and release the staging repository: https://oss.sonatype.org
3439
- change the version number in build.sbt to a suitable -SNAPSHOT version
3540
EOM

0 commit comments

Comments
 (0)