diff --git a/scripts/create_annotations_release.sh b/scripts/create_annotations_release.sh index e188e2a318a..4ded4291e26 100755 --- a/scripts/create_annotations_release.sh +++ b/scripts/create_annotations_release.sh @@ -10,8 +10,12 @@ set -x set -e -REMOTE="$( git remote get-url origin )" -OSS_REMOTE=https://github.com/facebook/infer.git +# This fixes 'gpg: signing failed: Inappropriate ioctl for device' error +# during signing +export GPG_TTY=$(tty) + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +ROOTDIR="$( cd $DIR/.. && pwd)" # check if we're in the open-source repo if ! git remote get-url origin | grep -q "\bgithub\.com\b"; then @@ -21,5 +25,6 @@ fi echo "Starting release..." -mvn -e release:clean release:prepare -mvn -e release:perform -DpushChanges=false +( cd "$ROOTDIR/infer/annotations" && \ + mvn -e release:clean release:prepare && \ + mvn -e release:perform -DpushChanges=false )