Skip to content

Commit

Permalink
ci: fix automated maven repository publishing (#1807)
Browse files Browse the repository at this point in the history
  • Loading branch information
SrinivasanTarget committed Nov 24, 2022
1 parent 26a6cdb commit bb12c03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ jobs:
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
PGP_SECRET: ${{ secrets.SIGNING_KEY }}
PGP_PASSPHRASE: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew publish
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ publishing {
}

signing {
def signingKey = System.getenv("PGP_SECRET")
def signingPassword = System.getenv("PGP_PASSPHRASE")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}

Expand Down
7 changes: 0 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
org.gradle.daemon=true

signing.keyId=YourKeyId
signing.password=YourPublicKeyPassword
signing.secretKeyRingFile=PathToYourKeyRingFile

ossrhUsername=your-jira-id
ossrhPassword=your-jira-password

selenium.version=4.5.0
# Please increment the value in a release
appiumClient.version=8.2.1

0 comments on commit bb12c03

Please sign in to comment.