diff --git a/.github/workflows/release-maven-artifacts.yml b/.github/workflows/release-maven-artifacts.yml index d7700b166e3f..71035753d74e 100644 --- a/.github/workflows/release-maven-artifacts.yml +++ b/.github/workflows/release-maven-artifacts.yml @@ -22,8 +22,14 @@ jobs: java-version: 17 cache: 'sbt' - uses: sbt/setup-sbt@v1 + - name: Import Scala PGP Key + uses: crazy-max/ghaction-import-gpg@v6 + with: + gpg_private_key: ${{ secrets.SCALA_PGP_KEY }} + passphrase : ${{ secrets.SCALA_PGP_PASSPHRASE }} + fingerprint : ${{ vars.SCALA_PGP_FINGERPRINT }} - name: Publish Artifacts to the Maven Repository - run : sbt scala3-bootstrapped-new/publish + run : sbt scala3-bootstrapped-new/publishSigned env: MAVEN_REPOSITORY_USER : ${{ secrets.MAVEN_REPOSITORY_USER }} MAVEN_REPOSITORY_TOKEN: ${{ secrets.MAVEN_REPOSITORY_TOKEN }} diff --git a/project/Build.scala b/project/Build.scala index 2031f9e8d7ef..0cbb5e4743d3 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -3,7 +3,6 @@ import java.nio.file._ import Process._ import Modes._ import ScaladocGeneration._ -import com.jsuereth.sbtpgp.PgpKeys import sbt.Keys.* import sbt.* import sbt.nio.FileStamper @@ -335,8 +334,6 @@ object Build { password <- sys.env.get("SONATYPE_PW") } yield Credentials("Sonatype Nexus Repository Manager", "central.sonatype.com", username, password) ).toList, - PgpKeys.pgpPassphrase := sys.env.get("PGP_PW").map(_.toCharArray()), - PgpKeys.useGpgPinentry := true, // Do not cut off the bottom of large stack traces (default is 1024) javaOptions ++= "-XX:MaxJavaStackTraceDepth=1000000" :: agentOptions,