From 598149d4cd8e27a67b69e289dd79cba597949279 Mon Sep 17 00:00:00 2001 From: Amine Date: Sat, 13 Oct 2018 22:13:56 +0200 Subject: [PATCH] Publish version. --- .gitignore | 4 +--- publish-version.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100755 publish-version.sh diff --git a/.gitignore b/.gitignore index 2842d7c..56b1517 100644 --- a/.gitignore +++ b/.gitignore @@ -216,6 +216,4 @@ gradle-app.setting release/ -crowdin.properties - -publish-version.sh \ No newline at end of file +crowdin.properties \ No newline at end of file diff --git a/publish-version.sh b/publish-version.sh new file mode 100755 index 0000000..c81add5 --- /dev/null +++ b/publish-version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +rm -f version.txt +printf "versionName=$1-github\nversionCode=$1" >> version.txt + +# You'll need to change server as your server and define a VERSION_PATH. +scp version.txt server:$VERSION_PATH + +rm version.txt