Skip to content

Commit 219b958

Browse files
authored
ETCM-165: Fix the 'no pinentry' issue during publishing (#964)
* ETCM-165: Move the gpg step, maybe that's the problem with 'no pinentry' * ETCM-165: Remove publishing on PR branch.
1 parent be884b1 commit 219b958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.buildkite/publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ GPG_EXISTS=$(gpg --list-keys "$GPG_KEY_ID" >&2 && echo "yes" || echo "no")
1818

1919
if [[ "$GPG_EXISTS" == "no" ]]; then
2020
echo "$GPG_KEY" | base64 --decode | gpg --batch --import
21+
# Local testing showed that without this the SBT plugin got "Bad passphrase".
22+
gpg --passphrase $GPG_PASSPHRASE --batch --yes -a -b LICENSE
2123
fi
22-
# Local testing showed that without this the SBT plugin got "Bad passphrase".
23-
gpg --passphrase $GPG_PASSPHRASE --batch --yes -a -b LICENSE
2424

2525
# https://github.com/olafurpg/sbt-ci-release#secrets
2626
export PGP_SECRET="$GPG_KEY"

0 commit comments

Comments
 (0)