-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3dbada9
commit c85e01b
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,15 +60,15 @@ mvn --batch-mode clean install -P release -Dgpg.passphrase=${gpg_pass} | |
|
||
# Commit and tag | ||
git commit -am "Release version ${version}" | ||
GIT_AUTHOR_NAME='Valeriy.Vyrva' | ||
GIT_AUTHOR_EMAIL='[email protected]' | ||
GIT_COMMITTER_NAME='Valeriy.Vyrva' | ||
GIT_COMMITTER_EMAIL='[email protected]' | ||
old_name=$(git config --get user.name) | ||
old_email=$(git config --get user.email) | ||
git config user.name 'Valeriy.Vyrva' | ||
git config user.email '[email protected]' | ||
git tag --local-user='[email protected]' -m "Release version ${version}" v${version} | ||
unset GIT_AUTHOR_NAME | ||
unset GIT_AUTHOR_EMAIL | ||
unset GIT_COMMITTER_NAME | ||
unset GIT_COMMITTER_EMAIL | ||
git config user.name ${old_name} | ||
git config user.email ${old_email} | ||
unset old_name | ||
unset old_email | ||
|
||
# Deploy artifact to Maven Central | ||
mvn --batch-mode deploy -P release -Dmaven.test.skip=true -Dgpg.passphrase=${gpg_pass} --settings ../settings.xml | ||
|