Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit ac100e4

Browse files
committed
chore(setup-release): Configure git for gpg signing
1 parent 6187f79 commit ac100e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/setup-release.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ setup_gradle_signing() {
1717
GRADLE_FOLDER=~/.gradle/
1818
GRADLE_PROPERTIES=$GRADLE_FOLDER/gradle.properties
1919
KEY_PATH=`pwd`/tools/bitrise-secret.key
20+
KEY_ID=9719DC41
2021

2122
if [ ! -d $GRADLE_FOLDER ]
2223
then
@@ -36,13 +37,14 @@ setup_gradle_signing() {
3637

3738
echo "Adding bitrise key to gradle properties..."
3839
cat > $GRADLE_PROPERTIES << EOF
39-
signing.keyId=9719DC41
40+
signing.keyId=$KEY_ID
4041
signing.password=
4142
signing.secretKeyRingFile=$KEY_PATH
4243
EOF
4344
echo "New gradle properties:"
4445
cat $GRADLE_PROPERTIES
4546
gpg --import $KEY_PATH
47+
git config user.signingkey $KEY_ID
4648
}
4749

4850
# Maven drop repository handling TODO: Remove if alternative https://issues.sonatype.org/browse/OSSRH-39124

0 commit comments

Comments
 (0)