File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,19 @@ jobs:
22
22
java-version : 17
23
23
cache : ' sbt'
24
24
- 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 }}
25
30
- name : Publish Artifacts to the Maven Repository
26
- run : sbt scala3-bootstrapped-new/publish
31
+ run : sbt scala3-bootstrapped-new/publishSigned
27
32
env :
28
33
MAVEN_REPOSITORY_USER : ${{ secrets.MAVEN_REPOSITORY_USER }}
29
34
MAVEN_REPOSITORY_TOKEN : ${{ secrets.MAVEN_REPOSITORY_TOKEN }}
30
35
MAVEN_REPOSITORY_HOST : ${{ vars.MAVEN_REPOSITORY_HOST }}
31
36
MAVEN_REPOSITORY_REALM : ${{ vars.MAVEN_REPOSITORY_REALM }}
32
37
MAVEN_REPOSITORY_URL : ${{ vars.MAVEN_REPOSITORY_URL }}
38
+ SCALA_PGP_PASSPHRASE : ${{ vars.SCALA_PGP_PASSPHRASE }}
33
39
NEWNIGHTLY : ${{ vars.NEWNIGHTLY }}
34
40
NIGHTLYBUILD : ${{ vars.NIGHTLYBUILD }}
Original file line number Diff line number Diff line change @@ -3394,6 +3394,8 @@ object Build {
3394
3394
// The old build credentials are configured differently
3395
3395
None
3396
3396
).toList,
3397
+ PgpKeys .pgpPassphrase := sys.env.get(" SCALA_PGP_PASSPHRASE" ).map(_.toCharArray()),
3398
+ PgpKeys .useGpgPinentry := true ,
3397
3399
publishConfiguration ~= (_.withOverwrite(true )),
3398
3400
publishLocalConfiguration ~= (_.withOverwrite(true )),
3399
3401
projectID ~= {id =>
You can’t perform that action at this time.
0 commit comments