-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: xcontent in list * style: code format * chore: pod dependency version limit * chore: update podfile lock * chore: 修改 beta 版本判断 * feat: release 4.0.0-beta.1 * chore: update podfile lock --------- Co-authored-by: GIOSDK <[email protected]>
- Loading branch information
Showing
7 changed files
with
106 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,29 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
POD_BETA_VERSOIN=`cat GrowingAnalytics.podspec | grep 's.version\s*=' | grep -Eo '[0-9]+.[0-9]+.[0-9]+'-beta` | ||
BETA='beta' | ||
POD_BETA_VERSION=`cat GrowingAnalytics.podspec | grep 's.version\s*=' | grep -Eo '[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'` | ||
|
||
if [[ $POD_BETA_VERSOIN == *$BETA* ]] | ||
then | ||
if [ ! -n "$POD_BETA_VERSION" ] ;then | ||
echo "spec文件中,版本号包含beta,且配置正确,继续" | ||
else | ||
echo "spec文件中,版本号配置beta错误,无法进行beta版本发布" | ||
exit 0; | ||
exit 1 | ||
fi | ||
|
||
TAG_VERSION=$(git tag | grep $POD_BETA_VERSOIN) | ||
TAG_VERSION=$(git tag | grep $POD_BETA_VERSION) | ||
|
||
if [ ! -n "$TAG_VERSION" ] ;then | ||
echo "Tag not exist, continue" | ||
else | ||
echo "Tag already exist" | ||
git tag -d $POD_BETA_VERSOIN | ||
git push origin -d tag $POD_BETA_VERSOIN | ||
git tag -d $POD_BETA_VERSION | ||
git push origin -d tag $POD_BETA_VERSION | ||
echo "Tag removed" | ||
echo "删除trunk上的cocoapods库" | ||
echo y | pod trunk delete GrowingAnalytics $POD_BETA_VERSION | ||
fi | ||
|
||
echo "删除trunk上的cocoapods库" | ||
echo y | pod trunk delete GrowingAnalytics $POD_BETA_VERSOIN | ||
|
||
git tag $POD_BETA_VERSOIN | ||
git tag $POD_BETA_VERSION | ||
git push --tags | ||
|
||
pod trunk push GrowingAnalytics.podspec --allow-warnings --use-libraries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters