Yubico / yubikit-android

Yubico Mobile Android SDK - YubiKit
Apache License 2.0
102 stars 38 forks source link

Conditionally disable release signing #66

Closed AdamVe closed 1 year ago

AdamVe commented 1 year ago

When using version string for release versions (without -SNAPSHOT postfix) signing is executed automatically during publish and publishToMavenLocal gradle tasks. This makes most of the CI builds fail in release branch, because the CI nodes don't have signing configuration/possibility.

This PR adds an option to opt out from signing by using environmental variable NO_GPG_SIGN set to true.

Example:

NO_GPG_SIGN=true ./gradlew publishToMavenLocal

When NO_GPG_SIGN is not defined or is not true, gradle will execute signing tasks.