Skip to content

Commit

Permalink
Fix the auto-publishing setup (hopefully).
Browse files Browse the repository at this point in the history
* Set publishTo according to sbt-sonatype 2.3's documentation.
* Fix the path where to look for the keys.
  • Loading branch information
sjrd committed Oct 16, 2020
1 parent 8f965b7 commit 0226142
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ val `scalajs-bundler` =
.aggregate(`sbt-scalajs-bundler`, `sbt-web-scalajs-bundler`)

inThisBuild(List(
pgpPublicRing := file("./travis/local.pubring.asc"),
pgpSecretRing := file("./travis/local.secring.asc"),
pgpPublicRing := file("./local.pubring.asc"),
pgpSecretRing := file("./local.secring.asc"),
pgpPassphrase := sys.env.get("PGP_PASS").map(_.toArray),
credentials ++= (
for {
Expand Down Expand Up @@ -149,6 +149,7 @@ inThisBuild(List(
))

lazy val commonSettings = List(
publishTo := sonatypePublishTo.value,
runScripted := runScriptedTask.value,
scriptedLaunchOpts ++= Seq(
"-Dplugin.version=" + version.value,
Expand Down

0 comments on commit 0226142

Please sign in to comment.