Skip to content

Commit af857a1

Browse files
committed
commit new tag
1 parent e6b0269 commit af857a1

3 files changed

Lines changed: 35 additions & 1 deletion

File tree

‎CLCollectionViewFlowLayout.podspec‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "CLCollectionViewFlowLayout"
19-
s.version = "1.0.0"
19+
s.version = "1.0.2"
2020
s.summary = "CLCollectionViewFlowLayout."
2121

2222
# This description is used to generate tags and improve search results.

‎setTag.sh‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
3+
4+
5+
#!/bin/bash
6+
7+
tagName=$(cat CLCollectionViewFlowLayout.podspec |awk '{if(NR==19){print $3}}')
8+
echo "原标签为$tagName"
9+
10+
read -t 30 -p "请输入标签名(新标签需要大于原标签):" tag
11+
echo "新标签名为$tag"
12+
13+
sed -i '' "s/$tagName/\"$tag\"/g" CLCollectionViewFlowLayout.podspec
14+
sleep 2s
15+
16+
read -p "git准备提交本地变更,请确认提交本地变更,按任意键继续"
17+
18+
git add --all
19+
git commit -m "commit new tag"
20+
git push -u origin master
21+
echo "提交git远程仓库完成!"
22+
23+
24+
sleep 2s
25+
git tag $tag
26+
sleep 1s
27+
git push origin $tag
28+
29+
echo "提交远程标签完成!"
30+
31+
sleep 2s
32+
pod trunk push --verbose --allow-warnings
33+
echo "更新索引完成!"
34+

0 commit comments

Comments
 (0)