kopia lustrzana https://github.com/felHR85/UsbSerial
started release script
rodzic
47f606396c
commit
b5dd43e5d2
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
#TODO: Update README.md
|
||||
|
||||
while getopts v:m: OPTION;
|
||||
do
|
||||
case $OPTION
|
||||
in
|
||||
v) VERSION=$OPTARG;;
|
||||
m) MESSAGE=$OPTARG;;
|
||||
esac
|
||||
done
|
||||
|
||||
echo "Starting Release $VERSION with commit message $MESSAGE"
|
||||
|
||||
VERSION_NAME="VERSION_NAME=$VERSION\n"
|
||||
|
||||
ex -sc "1i|$VERSION_NAME" -cx gradle.properties
|
||||
./gradlew clean build
|
||||
git commit -am $MESSAGE
|
||||
git tag -a $VERSION
|
||||
git push && git push --tags
|
Ładowanie…
Reference in New Issue