do not tag legacy

This commit is contained in:
pengfei.zhou 2020-03-24 20:32:34 +08:00 committed by osborn
parent 57eac48c79
commit 527c46c5ca

View File

@ -20,19 +20,4 @@ git cherry-pick $LATEST_HASH
git tag "$CURRENT_VERSION"_legacy
echo "Publish Android"
cd $CURRENT_DIR/doric-android && ./gradlew clean publishAll
# get repo name from git
remote=$(git config --get remote.origin.url)
repo=$(basename $remote .git)
commit=$(git rev-parse HEAD)
curl -s -X POST https://api.github.com/repos/doric-pub/$repo/git/refs \
-H "Authorization: token $GITHUB_TOKEN" \
-d @- << EOF
{
"ref": "refs/tags/${CURRENT_VERSION}_legacy",
"sha": "$commit"
}
EOF
cd $CURRENT_DIR/doric-android && ./gradlew clean publishAll