Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
Fix release build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
JPercival committed May 2, 2022
1 parent 6be589f commit 8919d09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ CMD="mvn deploy -DskipTests=true -Dmaven.test.skip=true -T 4 -B"
# Import signing key and publish a release on a tag
if [[ ! -z "$TRAVIS_TAG" ]]
then
echo "Publishing Maven Central release for tag: $TRAVIS_TAG"
echo $GPG_SECRET_KEYS | base64 --decode| $GPG_EXECUTABLE --import;
echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust;
# Activate the release profile
CMD="$CMD,release"
CMD="$CMD -P release"
else
echo "Publishing Maven Central snapshot / pre-release for branch: $TRAVIS_BRANCH"
fi
Expand Down
3 changes: 3 additions & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ CMD="mvn verify -T 4 -B -V"

if [[ ! -z "$TRAVIS_TAG" ]]
then
echo "Building release profile for Travis tag: $TRAVIS_TAG"
echo $GPG_SECRET_KEYS | base64 --decode| $GPG_EXECUTABLE --import;
echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust;
CMD="$CMD -P release"
fi

Expand Down

0 comments on commit 8919d09

Please sign in to comment.