Skip to content

Commit

Permalink
Merge PR #66.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Jul 21, 2022
2 parents fd70694 + c5597f7 commit bd2adda
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
java-version: 11
- name: Build with Gradle
run: ./gradlew --stacktrace check test build javadocJar publishToMavenLocal
run: NO_GPG_SIGN=true ./gradlew --stacktrace check test build javadocJar publishToMavenLocal

- name: Upload jars
uses: actions/upload-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion android/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ afterEvaluate {
}
}
tasks.withType(Sign) {
onlyIf { isReleaseVersion }
onlyIf { isReleaseVersion && System.getenv("NO_GPG_SIGN") != "true" }
}
signing {
useGpgCmd()
Expand Down
5 changes: 5 additions & 0 deletions doc/publish.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ Publishing can also be done for a single module:
./gradlew modulename:publish

When publishing to Sonatype you will need to log in to the staging repo to close and release.

When building release, gradle will by default execute signing tasks. When this is not desired, for
example during CI builds, it is possible to disable signing with `NO_GPG_SIGN` env variable set to `true`.

NO_GPG_SIGN=true ./gradlew publishToMaven
2 changes: 1 addition & 1 deletion publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ publishing {
}
}
tasks.withType(Sign) {
onlyIf { isReleaseVersion }
onlyIf { isReleaseVersion && System.getenv("NO_GPG_SIGN") != "true" }
}

signing {
Expand Down

0 comments on commit bd2adda

Please sign in to comment.