Skip to content

Commit b5fda66

Browse files
committed
sonatype central publish
1 parent 81951b1 commit b5fda66

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ jobs:
2020
env:
2121
PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2222
PGP_SECRET: ${{ secrets.GPG_PRIVATE_KEY }}
23-
SONATYPE_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
24-
SONATYPE_USERNAME: ${{ secrets.OSSRH_USERNAME }}
23+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
24+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

build.sbt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,10 @@ lazy val tests = project
4747
.settings(publish / skip := true)
4848
.dependsOn(input, rules)
4949
.enablePlugins(ScalafixTestkitPlugin)
50+
51+
// Sonatype Central publishing configuration
52+
ThisBuild / publishTo := {
53+
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
54+
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
55+
else localStaging.value
56+
}

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.10.6
1+
sbt.version = 1.11.2

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.9.2")
1+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.1")
22
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.13.0")
33
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.4")
44
dependencyOverrides += "ch.epfl.scala" % "scalafix-interfaces" % "0.13.0"

0 commit comments

Comments
 (0)