Skip to content

Commit 8f58408

Browse files
committed
chore: sign the released scala nighlies now
1 parent eb1bb73 commit 8f58408

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3394,6 +3394,8 @@ object Build {
33943394
// The old build credentials are configured differently
33953395
None
33963396
).toList,
3397+
PgpKeys.pgpPassphrase := sys.env.get("SCALA_PGP_PASSPHRASE").map(_.toCharArray()),
3398+
PgpKeys.useGpgPinentry := true,
33973399
publishConfiguration ~= (_.withOverwrite(true)),
33983400
publishLocalConfiguration ~= (_.withOverwrite(true)),
33993401
projectID ~= {id =>

0 commit comments

Comments
 (0)