Skip to content

Commit 7c171b4

Browse files
committed
Fix release script
1 parent 0b62d21 commit 7c171b4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

release.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/usr/bin/env bash
2-
env | grep MAVEN_GPG_PASSPHRASE > /dev/null
3-
if [ $? -eq 1 ]; then
4-
echo "Environment variable 'MAVEN_GPG_PASSPHRASE' is missing. Set it to empty if there is no passphrase."
5-
exit 1
6-
fi
2+
# Prime gpg-agent caches. See https://maven.apache.org/plugins/maven-gpg-plugin/usage.html
3+
echo "test" | gpg --clearsign > /dev/null
74
./mvnw --batch-mode clean release:prepare release:perform && git push && git push --tags

0 commit comments

Comments
 (0)