Skip to content

Commit

Permalink
更新脚本,只上传到 master repo
Browse files Browse the repository at this point in the history
  • Loading branch information
karosLi committed Aug 30, 2019
1 parent f0fca75 commit 0838677
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ if [[ ${checkInMessage} = "" ]]; then
exit
fi

./uploadRepo.sh -r master -f KKJSBridge.podspec -m ${checkInMessage}
./uploadRepo.sh -f KKJSBridge.podspec -m ${checkInMessage}
17 changes: 1 addition & 16 deletions uploadRepo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ c_build_version='c'
################# End Constant ########################

################# Get Parameters ############################
#private repo srouce
privatePods=""
#pod spec file
podspecFile=""
build_version_type=$c_build_version
Expand All @@ -24,7 +22,6 @@ function usage()
echo "Upload component to private repo"
echo ""
echo "Options for upload:"
echo "-r, --repo STRING REQUIRED The repo source."
echo "-f, --file STRING REQUIRED The podspec file."
echo "-v, --versiontype STRING The version type. Valid values are: a, b, c. Example: if version is 1.0.1, then a is 1, b is 0, c is 1."
echo "-m, --message STRING The check in message."
Expand All @@ -36,13 +33,6 @@ function usage()
while getopts "r:f:v:m:" option
do
case "$option" in
r)
privatePods=$OPTARG
;;

repo)
privatePods=$OPTARG
;;
f)
podspecFile=$OPTARG
;;
Expand Down Expand Up @@ -174,18 +164,13 @@ function checkInAndMakeTag() {
################ Upload function ############################
function upload() {
local podspecFile=$1
pod trunk push ${privatePods} ${podspecFile} --verbose --allow-warnings
pod trunk push ${podspecFile} --verbose --allow-warnings
}

################# End upload function ############################

################# Main function ############################
function checkParams() {
if [[ ${privatePods} = "" ]]; then
usage
exit
fi

if [[ ${podspecFile} = "" ]]; then
usage
exit
Expand Down

0 comments on commit 0838677

Please sign in to comment.