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:
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 }}
Original file line number Diff line number Diff 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 =>
You can’t perform that action at this time.
0 commit comments