Skip to content

Commit f031eab

Browse files
authored
chore: sign the released scala nightlies now (#23931)
Closes #23930
2 parents eb1bb73 + cf431b1 commit f031eab

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/release-maven-artifacts.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@ jobs:
2222
java-version: 17
2323
cache: 'sbt'
2424
- uses: sbt/setup-sbt@v1
25+
- name: Import Scala PGP Key
26+
uses: crazy-max/ghaction-import-gpg@v6
27+
with:
28+
gpg_private_key: ${{ secrets.SCALA_PGP_KEY }}
29+
passphrase : ${{ secrets.SCALA_PGP_PASSPHRASE }}
30+
fingerprint : ${{ vars.SCALA_PGP_FINGERPRINT }}
2531
- name: Publish Artifacts to the Maven Repository
26-
run : sbt scala3-bootstrapped-new/publish
32+
run : sbt scala3-bootstrapped-new/publishSigned
2733
env:
2834
MAVEN_REPOSITORY_USER : ${{ secrets.MAVEN_REPOSITORY_USER }}
2935
MAVEN_REPOSITORY_TOKEN: ${{ secrets.MAVEN_REPOSITORY_TOKEN }}

project/Build.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import java.nio.file._
33
import Process._
44
import Modes._
55
import ScaladocGeneration._
6-
import com.jsuereth.sbtpgp.PgpKeys
76
import sbt.Keys.*
87
import sbt.*
98
import sbt.nio.FileStamper
@@ -335,8 +334,6 @@ object Build {
335334
password <- sys.env.get("SONATYPE_PW")
336335
} yield Credentials("Sonatype Nexus Repository Manager", "central.sonatype.com", username, password)
337336
).toList,
338-
PgpKeys.pgpPassphrase := sys.env.get("PGP_PW").map(_.toCharArray()),
339-
PgpKeys.useGpgPinentry := true,
340337

341338
// Do not cut off the bottom of large stack traces (default is 1024)
342339
javaOptions ++= "-XX:MaxJavaStackTraceDepth=1000000" :: agentOptions,

0 commit comments

Comments
 (0)