Skip to content

Commit 556d5bc

Browse files
committed
优化video打区分产品打tag规则
Change-Id: I49ccec33b5951afe0c33d9a063d9e21743a6f9e5
1 parent 19eecf1 commit 556d5bc

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/deploypod.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,17 @@ jobs:
4242
set -eo pipefail
4343
4444
temptag=$(git describe --tags `git rev-list --tags --max-count=1`)
45-
VERSION=${temptag#*v}
46-
VERSIONLIST=(${VERSION//-/ })
47-
echo ${VERSIONLIST[0]}
48-
export LIB_VERSION=${VERSIONLIST[0]}
49-
45+
vtaglist=(${temptag//-/ })
46+
beta=${vtaglist[2]}
47+
version=${vtaglist[1]}
48+
if [ ${#beta} -gt 0 ]
49+
then
50+
version=${vtaglist[1]}-$beta
51+
fi
52+
version=${version#*v}
53+
echo $version
54+
55+
export LIB_VERSION=$version
5056
perl -i -pe "s#.*s.source =.*#\ts.source = { :git => 'https://github.com/tencentyun/iot-link-ios.git', :tag => \"$temptag\" }#g" TIoTLinkVideo.podspec
5157
5258
pod lib lint TIoTLinkVideo.podspec --verbose --allow-warnings --use-libraries

0 commit comments

Comments
 (0)