From 6d9a08f8f3437107025b845fc87da9d58b535b23 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 16 Dec 2016 18:46:34 +0900 Subject: [PATCH] Added release script --- prepare-release.bash | 8 ++------ release.bash | 9 +++++++++ 2 files changed, 11 insertions(+), 6 deletions(-) mode change 100644 => 100755 release.bash diff --git a/prepare-release.bash b/prepare-release.bash index f3fe9189..6a4eb2dc 100755 --- a/prepare-release.bash +++ b/prepare-release.bash @@ -38,7 +38,7 @@ Updating Translations " tx push -s tx pull -a -./gradlew deleteUnsupportedPlayTranslations publishListingFatRelease +./gradlew deleteUnsupportedPlayTranslations git add -A "src/fat/play/" git add -A "src/main/res/values-*/strings.xml" if ! git diff --cached --exit-code; @@ -70,9 +70,5 @@ git commit -m "Bumped version to $NEW_VERSION_NAME" git tag $NEW_VERSION_NAME echo " -Update ready. -1. Run \`git push --follow-tags\` -2. Enter release notes at https://github.com/syncthing/syncthing-android/releases -3. Build signed APK in Android Studio -4. Upload APKs to Google Play +Update ready. Now run `release.bash` to publish. " diff --git a/release.bash b/release.bash old mode 100644 new mode 100755 index e69de29b..4fb33fb3 --- a/release.bash +++ b/release.bash @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +CHANGELOG_FILE="src/main/play/en-GB/whatsnew" +rm $CHANGELOG_FILE +nano $CHANGELOG_FILE +cat $CHANGELOG_FILE +git push +git push --tags +./gradlew publishRelease