1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-29 07:41:17 +00:00
syncthing-android/publish-release.sh
Catfriend1 9933294ac5
Publish listings on GPlay (#338)
* Update build.gradle

* Remove unsupported translations

* Update publish-release.sh

* Update APK version to 1.0.1.7

* build.gradle: errorOnSizeLimit = false

* publish_release.sh: Add gradlew publishListingRelease

* Imported string translations

* Updated gplay translation: de_DE

* Add unsupported translations to .gitignore
2019-02-24 16:01:56 +01:00

48 lines
1,002 B
Bash
Executable file

#!/usr/bin/env bash
set -e
version=$(git describe --tags)
regex='^[0-9]+\.[0-9]+\.[0-9]+$'
if [[ ! ${version} =~ $regex ]]
then
echo "Current commit is not a release"
exit;
fi
echo "
Pushing to Github
-----------------------------
"
git push
git push --tags
echo "
Push to Google Play
-----------------------------
"
read -s -p "Enter signing password: " password
SIGNING_PASSWORD=${password} ./gradlew assembleRelease
# Upload apk and listing to Google Play
./gradlew deleteUnsupportedPlayTranslations
SIGNING_PASSWORD=${password} ./gradlew publishRelease
./gradlew publishListingRelease
echo "
Release published!
"
#echo "
#
#Create Github Release
#-----------------------------
#"
#ACCESS_TOKEN=""
#api_json=$(printf '{"tag_name": "v%s","target_commitish": "master","name": "v%s","body": "%s","draft": false,"prerelease": false}' $version $version $changelog)
#curl --data "$api_json" https://api.github.com/repos/Catfriend1/syncthing-android/releases?access_token=$ACCESS_TOKEN