File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -437,6 +437,8 @@ jobs:
437
437
MAVEN_PASSWORD : ${{ secrets.JIRA_PASS }}
438
438
# MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
439
439
# MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
440
+ PGP_SECRET : ${{ secrets.PGP_SECRET }}
441
+ PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
440
442
441
443
quantize :
442
444
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ plugins {
2
2
id ' java'
3
3
id ' java-library'
4
4
id ' maven-publish'
5
+ id ' signing'
5
6
}
6
7
7
8
archivesBaseName = ' whispercpp'
@@ -112,11 +113,20 @@ publishing {
112
113
113
114
repositories {
114
115
maven {
115
- url = ' https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
116
+ def releasesRepoUrl = ' https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
117
+ def snapshotsRepoUrl = ' https://s01.oss.sonatype.org/content/repositories/snapshots/'
118
+ url = version. endsWith(' -SNAPSHOT' ) ? snapshotsRepoUrl : releasesRepoUrl
116
119
credentials {
117
120
username = System . getenv(" MAVEN_USERNAME" )
118
121
password = System . getenv(" MAVEN_PASSWORD" )
119
122
}
120
123
}
121
124
}
122
125
}
126
+
127
+ signing {
128
+ def signingKey = System . getenv(" PGP_SECRET" )
129
+ def signingPassword = System . getenv(" PGP_PASSPHRASE" )
130
+ useInMemoryPgpKeys(signingKey, signingPassword)
131
+ sign publishing. publications. mavenJava
132
+ }
You can’t perform that action at this time.
0 commit comments