Skip to content

Commit bb12c03

Browse files
ci: fix automated maven repository publishing (#1807)
1 parent 26a6cdb commit bb12c03

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ jobs:
1717
env:
1818
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
1919
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
20+
PGP_SECRET: ${{ secrets.SIGNING_KEY }}
21+
PGP_PASSPHRASE: ${{ secrets.SIGNING_PASSWORD }}
2022
run: ./gradlew publish

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ publishing {
177177
}
178178

179179
signing {
180+
def signingKey = System.getenv("PGP_SECRET")
181+
def signingPassword = System.getenv("PGP_PASSPHRASE")
182+
useInMemoryPgpKeys(signingKey, signingPassword)
180183
sign publishing.publications.mavenJava
181184
}
182185

gradle.properties

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
org.gradle.daemon=true
22

3-
signing.keyId=YourKeyId
4-
signing.password=YourPublicKeyPassword
5-
signing.secretKeyRingFile=PathToYourKeyRingFile
6-
7-
ossrhUsername=your-jira-id
8-
ossrhPassword=your-jira-password
9-
103
selenium.version=4.5.0
114
# Please increment the value in a release
125
appiumClient.version=8.2.1

0 commit comments

Comments
 (0)