Skip to content

Commit 05d1788

Browse files
committed
WIP
1 parent 2eeb4dc commit 05d1788

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ci/upload_to_maven.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
export GPG_KEY_LOCATION=$(pwd)/encrypted.key
44
echo "Starting upload to maven"
55
echo "${GPG_SECRET_KEYS_ENC}" | base64 --decode > $GPG_KEY_LOCATION
6+
echo "ls key: "
7+
ls $GPG_KEY_LOCATION
8+
echo "sha256sum key: "
9+
sha256sum $GPG_KEY_LOCATION
10+
echo "running gradlew"
611
./gradlew properties -q | grep "version:" | awk '{print $2}'
712
export PROJECT_VERSION=$(./gradlew properties -q | grep "version:" | awk '{print $2}')
813
# Upload only snapshots to sonatype oss so it can make its way to maven central
@@ -11,4 +16,4 @@ export PROJECT_VERSION=$(./gradlew properties -q | grep "version:" | awk '{print
1116
# Only non-snapshot can be pushed as maven releases
1217
if [[ ! $(echo "${PROJECT_VERSION}" | grep "SNAPSHOT") ]]; then
1318
./gradlew closeAndReleaseRepository
14-
fi
19+
fi

0 commit comments

Comments
 (0)