Skip to content

Commit c04cfe5

Browse files
committed
Updated release script
1 parent c70bcac commit c04cfe5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

bin/release.sh renamed to dev-bin/release.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
TAG=$1
4+
SKIP_MAVEN=$2
45

56
if [ -z $TAG ]; then
67
echo "Please specify a tag"
@@ -59,12 +60,13 @@ if [ "$SHOULD_PUSH" != "y" ]; then
5960
exit 1
6061
fi
6162

62-
# If we don't push directly to github, the page doesn't get built for some
63-
# reason.
64-
git push [email protected]:maxmind/GeoIP2-java.git
6563
git push
6664

6765
cd ..
68-
git tag $TAG
66+
if [ -z $TAG ]; then
67+
mvn release:clean
68+
mvn release:prepare
69+
mvn release:perform
70+
fi
6971
git push
7072
git push --tags

0 commit comments

Comments
 (0)