diff --git a/.gitignore b/.gitignore index 56b1517..2842d7c 100644 --- a/.gitignore +++ b/.gitignore @@ -216,4 +216,6 @@ gradle-app.setting release/ -crowdin.properties \ No newline at end of file +crowdin.properties + +publish-version.sh \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..90eb61f --- /dev/null +++ b/build.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +BASE_VERSION="v1.6" +TODAYS_VERSION="1" + +VERSION="${BASE_VERSION}.$(date '+%y%m%j')$TODAYS_VERSION" + +./version.sh ${VERSION} $@ + +./publish-version.sh ${VERSION} $@ diff --git a/version.sh b/version.sh index f8413eb..1561caf 100755 --- a/version.sh +++ b/version.sh @@ -1,14 +1,10 @@ #!/bin/bash # You can pass --force as first parameter to force push and tag creation. -BASE_VERSION="v1.6" -TODAYS_VERSION="1" -VERSION="${BASE_VERSION}.$(date '+%y%m%j')$TODAYS_VERSION" +echo "Creating tag $1" -echo "Creating tag $VERSION" - -git tag $VERSION $1 +git tag $1 $@ echo "Pushing tag" -git push origin $VERSION $1 +git push origin $1 $@