From 2eddf9cc619b77c4b07486b7f75bc9786283e353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Thu, 16 Jan 2020 16:05:10 +0800 Subject: [PATCH] add android legacy publish shell script --- publish-android-legacy.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 publish-android-legacy.sh diff --git a/publish-android-legacy.sh b/publish-android-legacy.sh new file mode 100644 index 00000000..1d3bc465 --- /dev/null +++ b/publish-android-legacy.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +############################################################################## +## +## Publish Android Legacy +## +############################################################################## + +CURRENT_DIR=$(cd $(dirname $0); pwd) +CURRENT_VERSION=$(cat $CURRENT_DIR/version) + +echo "Current version is "$CURRENT_VERSION + +## Android +echo "version="$CURRENT_VERSION > $CURRENT_DIR/doric-android/version.properties + +LATEST_HASH=$(git rev-parse origin/legacy/android_support) + +git cherry-pick $LATEST_HASH +git tag "$CURRENT_VERSION"_legacy +git push origin "$CURRENT_VERSION"_legacy + +echo "Publish Android" +cd $CURRENT_DIR/doric-android && ./gradlew clean publishAll \ No newline at end of file