Skip to content

Commit

Permalink
try fixing signing again again again again
Browse files Browse the repository at this point in the history
  • Loading branch information
cleaning-agent committed Feb 11, 2022
1 parent b024c4e commit a7c3ad3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/sign_and_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ gpg --passphrase "${GPG_PASSPHRASE}" --batch --yes --fast-import ${KEY_FILE}
echo gpg keyname ${GPG_KEYNAME}

if [[ "${REF_TYPE}" == "tag" ]]; then
mvn --batch-mode -DskipTests=true -Dproject.version=${REF_NAME} verify gpg:sign deploy
# -P sign plugin is used instead of gpg:sign because gpg:sign has side-effects
# also, install cannot be used because deploy will cause the signatures to be invalid because it
# re-creates the jars. So explicitly calling source:jar and javadoc:jar seems to be the only
# viable solution.
mvn --batch-mode -DskipTests=true -Dproject.version=${REF_NAME} -P sign clean source:jar javadoc:jar deploy
SUCCESS=$?
else
echo "this should only be run for tags"
Expand Down

0 comments on commit a7c3ad3

Please sign in to comment.