Skip to content

Commit 49b3b54

Browse files
committed
chore: sign the released scala nightlies now
1 parent eb1bb73 commit 49b3b54

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,19 @@ 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 }}
2530
- name: Publish Artifacts to the Maven Repository
26-
run : sbt scala3-bootstrapped-new/publish
31+
run : sbt scala3-bootstrapped-new/publishSigned
2732
env:
2833
MAVEN_REPOSITORY_USER : ${{ secrets.MAVEN_REPOSITORY_USER }}
2934
MAVEN_REPOSITORY_TOKEN: ${{ secrets.MAVEN_REPOSITORY_TOKEN }}
3035
MAVEN_REPOSITORY_HOST : ${{ vars.MAVEN_REPOSITORY_HOST }}
3136
MAVEN_REPOSITORY_REALM: ${{ vars.MAVEN_REPOSITORY_REALM }}
3237
MAVEN_REPOSITORY_URL : ${{ vars.MAVEN_REPOSITORY_URL }}
38+
SCALA_PGP_PASSPHRASE : ${{ vars.SCALA_PGP_PASSPHRASE }}
3339
NEWNIGHTLY : ${{ vars.NEWNIGHTLY }}
3440
NIGHTLYBUILD : ${{ vars.NIGHTLYBUILD }}

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ object Build {
335335
password <- sys.env.get("SONATYPE_PW")
336336
} yield Credentials("Sonatype Nexus Repository Manager", "central.sonatype.com", username, password)
337337
).toList,
338-
PgpKeys.pgpPassphrase := sys.env.get("PGP_PW").map(_.toCharArray()),
338+
PgpKeys.pgpPassphrase := sys.env.get("SCALA_PGP_PASSPHRASE").map(_.toCharArray()),
339339
PgpKeys.useGpgPinentry := true,
340340

341341
// Do not cut off the bottom of large stack traces (default is 1024)

0 commit comments

Comments
 (0)