Skip to content

Commit 1048601

Browse files
author
Mariusz Kopylec
committed
release script
1 parent 082a18c commit 1048601

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
*.iml
33
gradle.properties
44
.gradle
5-
build
6-
release
5+
build

release

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
while getopts v: opts; do
2+
case ${opts} in
3+
v) VERSION=${OPTARG} ;;
4+
esac
5+
done
6+
7+
if [ -z "$VERSION" ]; then
8+
echo "Set release version using -v option"
9+
exit 1
10+
else
11+
./gradlew clean test release -Prelease.forceVersion=$VERSION && ./gradlew uploadArchives -PsignArtifacts
12+
fi

0 commit comments

Comments
 (0)