forked from deepin-community/objenesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
executable file
·42 lines (31 loc) · 979 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# This script expects:
# - the version to be deployed as the first parameter
# to exit in case of error
set -e
set -v
function pause {
echo
read -p "Press [enter] to continue"
}
# Weird fix required by GPG. See https://github.com/keybase/keybase-issues/issues/1712. You will have to enter the passphrase on screen
export GPG_TTY=$(tty)
mvn release:prepare -Pall,full,release
# Need to push now because release:perform will checkout the remote tag
git push
git push --tags
mvn release:perform -Pall,full,release
echo "Please add the release notes in github"
open "https://github.com/easymock/objenesis/tags"
pause
# Release the jars now on central staging
echo "Check everything is alright, next step will release to central"
open "https://oss.sonatype.org/#welcome"
pause
mvn nexus-staging:release
echo "Close the milestone in GitHub and create the new one"
open "https://github.com/easymock/objenesis/milestones"
pause
echo
echo "Job done!"
echo