Skip to content

Commit

Permalink
Remove all locally changed files before running ./gradlew final (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Rzeszutek authored Jul 26, 2021
1 parent 91582a6 commit 722777d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ EOF

echo ">>> Importing secret key ..."
echo "$GPG_SECRET_KEY" > seckey.gpg
trap "rm seckey.gpg" EXIT INT KILL STOP TERM
gpg --batch --allow-secret-key-import --import seckey.gpg
if (gpg --batch --allow-secret-key-import --import seckey.gpg)
then
rm seckey.gpg
else
rm seckey.gpg
exit 1
fi
}

build_project() {
Expand Down

0 comments on commit 722777d

Please sign in to comment.