add android legacy publish shell script
This commit is contained in:
parent
7140190adf
commit
2eddf9cc61
23
publish-android-legacy.sh
Normal file
23
publish-android-legacy.sh
Normal file
@ -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
|
Reference in New Issue
Block a user