Skip to content

Commit d17f5d9

Browse files
committed
sonatype central publish
1 parent bee4a1c commit d17f5d9

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
@@ -27,5 +27,5 @@ jobs:
2727
env:
2828
PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2929
PGP_SECRET: ${{ secrets.GPG_PRIVATE_KEY }}
30-
SONATYPE_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
31-
SONATYPE_USERNAME: ${{ secrets.OSSRH_USERNAME }}
30+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
31+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

build.sbt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,10 @@ Test / tpolecatExcludeOptions += ScalacOptions.warnNonUnitStatement
3838
Test / parallelExecution := false
3939
Test / publishArtifact := false
4040
pomIncludeRepository := (_ => false)
41+
42+
// Sonatype Central publishing configuration
43+
ThisBuild / publishTo := {
44+
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
45+
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
46+
else localStaging.value
47+
}

project/build.properties

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

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
1+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.1")
22
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2")

0 commit comments

Comments
 (0)