Skip to content

Commit

Permalink
Switch to sbt-ci-release
Browse files Browse the repository at this point in the history
  • Loading branch information
stanch committed Jul 28, 2024
1 parent c86cc07 commit 87c78bd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 23 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ jobs:
distribution: 'temurin'
java-version: '17'
- uses: coursier/cache-action@v6
- run: |
sbt "+publishSigned; sonatypeReleaseAll"
- run: sbt ci-release
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
Binary file removed .gnupg/pubring.gpg
Binary file not shown.
Binary file removed .gnupg/secring.gpg
Binary file not shown.
19 changes: 2 additions & 17 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ val commonSettings = Seq(
case _ =>
commonScalacOptions
}
},
version := "0.6.0"
) ++ metadata ++ publishing
}
) ++ metadata

lazy val metadata = Seq(
organization := "io.github.stanch",
Expand All @@ -48,20 +47,6 @@ lazy val metadata = Seq(
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
)

lazy val publishing = Seq(
usePgpKeyHex("8ED74E385203BEB1"),
pgpPublicRing := baseDirectory.value.getParentFile / ".gnupg" / "pubring.gpg",
pgpSecretRing := baseDirectory.value.getParentFile / ".gnupg" / "secring.gpg",
pgpPassphrase := sys.env.get("PGP_PASS").map(_.toArray),
credentials += Credentials(
"Sonatype Nexus Repository Manager",
"oss.sonatype.org",
sys.env.getOrElse("SONATYPE_USER", ""),
sys.env.getOrElse("SONATYPE_PASS", "")
),
publishTo := Some(Opts.resolver.sonatypeStaging)
)

lazy val zipper = crossProject(JSPlatform, JVMPlatform).in(file("."))
.settings(commonSettings)
.settings(
Expand Down
6 changes: 2 additions & 4 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.5.2")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.10.0")

addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")

addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.12.0")

addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")

0 comments on commit 87c78bd

Please sign in to comment.