Skip to content

Commit 84e3669

Browse files
committed
try to fix jar publish
1 parent 77f72f4 commit 84e3669

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ jobs:
134134
- env:
135135
CI_SNAPSHOT_RELEASE: +publishSigned
136136
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
137-
SONATYPE_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD3 }}
138-
SONATYPE_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME3 }}
137+
SONATYPE_PASSWORD: ${{ secrets.CENTRAL_DEPLOY_PASSWORD }}
138+
SONATYPE_USERNAME: ${{ secrets.CENTRAL_DEPLOY_USERNAME }}
139139
PGP_SECRET: ${{ secrets.PGP_SECRET }}
140140
run: sbt -J-Xmx2G ci-release

build.sbt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sbtghactions.JavaSpec.Distribution.Zulu
22
import com.github.sbt.sbom._
3+
import xerial.sbt.Sonatype.sonatypeCentralHost
34

45
// Basic facts
56
name := "jackson-module-scala"
@@ -13,8 +14,8 @@ ThisBuild / scalaVersion := scala213Version
1314

1415
ThisBuild / crossScalaVersions := Seq("2.12.20", scala213Version, "3.3.6")
1516

16-
sonatypeCredentialHost := "s01.oss.sonatype.org"
17-
sonatypeRepository := "s01.oss.sonatype.org"
17+
ThisBuild / sonatypeCredentialHost := sonatypeCentralHost
18+
ThisBuild / sonatypeRepository := sonatypeCentralHost // "s01.oss.sonatype.org"
1819

1920
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
2021

@@ -131,8 +132,8 @@ ThisBuild / githubWorkflowPublish := Seq(
131132
env = Map(
132133
"PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}",
133134
"PGP_SECRET" -> "${{ secrets.PGP_SECRET }}",
134-
"SONATYPE_PASSWORD" -> "${{ secrets.CI_DEPLOY_PASSWORD3 }}",
135-
"SONATYPE_USERNAME" -> "${{ secrets.CI_DEPLOY_USERNAME3 }}",
135+
"SONATYPE_PASSWORD" -> "${{ secrets.CENTRAL_DEPLOY_PASSWORD }}",
136+
"SONATYPE_USERNAME" -> "${{ secrets.CENTRAL_DEPLOY_USERNAME }}",
136137
"CI_SNAPSHOT_RELEASE" -> "+publishSigned"
137138
)
138139
)

0 commit comments

Comments
 (0)