Skip to content

Commit

Permalink
release script modified
Browse files Browse the repository at this point in the history
  • Loading branch information
felHR85 committed Mar 9, 2019
1 parent 566c20f commit dcc5063
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ esac
done

# Show error message if no version was provided
if [ -z $VERSION ];
if [ -z ${VERSION} ];
then
echo "UsbSerial: Error!! No version was provided"
exit 0
fi

# Show error message if no message was provided
if [ -z $MESSAGE ];
if [ -z ${MESSAGE} ];
then
echo "UsbSerial: Error!! No message was provided"
exit 0
Expand All @@ -45,8 +45,9 @@ ex -sc "${LINE}i|$GRADLE_LINE" -cx README.md
./gradlew clean build

# Git stuff
git commit -am $MESSAGE
git tag -a $VERSION
git push && git push --tags
git commit -m $MESSAGE
git tag $VERSION
git push origin master
git push --tags

echo "UsbSerial: Release Finished!!!"

0 comments on commit dcc5063

Please sign in to comment.