-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpush_to_trunk.sh
More file actions
executable file
·48 lines (41 loc) · 1.29 KB
/
push_to_trunk.sh
File metadata and controls
executable file
·48 lines (41 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/zsh
# root directory
cd "$(dirname "$0")"
echo "💁💁💁 Please enter a tag name:"
read tag_name
echo "🚀🚀🚀 Push to remote github by tag..."
git tag "$tag_name"
if git push origin "$tag_name"; then
echo "✅✅✅ Tag push successful!"
else
echo "❌❌❌ Push to remote GitHub failed. Exit."
exit 1
fi
echo "🔍🔍🔍 Local verification podspec..."
if pod lib lint --verbose --allow-warnings --skip-import-validation; then
echo "✅✅✅ Local verification successful!"
else
echo "❌❌❌ Local verification failed. Exit."
exit 1
fi
echo "🌐🌐🌐 Networking verification podspec..."
if pod spec lint --verbose --allow-warnings --skip-import-validation; then
echo "✅✅✅ Networking verification successful!"
else
echo "❌❌❌ Networking verification failed. Exit."
exit 1
fi
echo "🤖🤖🤖 Trunk me token, cocoapods.org..."
if pod trunk me; then
echo "✅✅✅ Trunk token verification successful!"
else
echo "❌❌❌ Trunk token verification failed. Exit."
exit 1
fi
echo "⚡️⚡️⚡️ Pod trunk push..."
if pod trunk push ScanHelper.podspec --verbose --allow-warnings --skip-import-validation; then
echo "✅✅✅ Pod trunk push successful!"
else
echo "❌❌❌ Pod trunk push failed. Exit."
exit 1
fi