diff --git a/.rultor/deploy.sh b/.rultor/deploy.sh index 35a282b..20928aa 100644 --- a/.rultor/deploy.sh +++ b/.rultor/deploy.sh @@ -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='valery1707@gmail.com' -GIT_COMMITTER_NAME='Valeriy.Vyrva' -GIT_COMMITTER_EMAIL='valery1707@gmail.com' +old_name=$(git config --get user.name) +old_email=$(git config --get user.email) +git config user.name 'Valeriy.Vyrva' +git config user.email 'valery1707@gmail.com' git tag --local-user='valery1707@gmail.com' -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