diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8f82b851b..8196bf5ff 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 \ No newline at end of file diff --git a/build.gradle b/build.gradle index a932f5b51..44a552bdb 100644 --- a/build.gradle +++ b/build.gradle @@ -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 } diff --git a/gradle.properties b/gradle.properties index 250d8d3b8..e23c7abf2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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