Xcode auto tag when archive
2020-07-13 本文已影响0人
十一岁的加重
image.png
Auto Tag When Archive
if [[ "$TARGET_BUILD_DIR" == *"/Archive"* ]]; then
tagName="$MARKETING_VERSION-$CURRENT_PROJECT_VERSION-${CONFIGURATION=}"
if git rev-parse "$tagName" >/dev/null 2>&1; then
git tag -d $tagName
git push origin --delete $tagName
fi
git tag $tagName
git push origin $tagName
fi