Skip to content

Commit f8a7caa

Browse files
committed
try deploy snapshot version
1 parent 5da4f36 commit f8a7caa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.ci/deploy.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ version=$(mvn exec:exec -q -N -Dexec.executable="echo" -Dexec.args='${project.ve
2727
echo "${version}"
2828

2929
if [ "$version" ]; then
30+
export GPG_TTY=$(tty)
3031
mvn clean deploy -Psnapshot --settings "${TRAVIS_BUILD_DIR}"/.mvn/settings.xml -Dgpg.executable=gpg2 -Dgpg.keyname="$GPG_KEY_NAME"-Dgpg.passphrase="$GPG_PASSPHRASE"
31-
fi
32+
fi

.ci/release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ if [ -z "$GPG_PASSPHRASE" ]; then
2424
fi
2525

2626
if [ "$TRAVIS_TAG" ]; then
27+
export GPG_TTY=$(tty)
2728
mvn clean deploy -Prelease --settings "${TRAVIS_BUILD_DIR}"/.mvn/settings.xml -Dgpg.executable=gpg2 -Dgpg.keyname="$GPG_KEY_NAME"-Dgpg.passphrase="$GPG_PASSPHRASE"
2829
else
2930
echo "not create a tag"

0 commit comments

Comments
 (0)