diff --git a/deploy.sh b/deploy.sh index 615762821f..29ce2f8bc9 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,16 +1,17 @@ #!/bin/sh # deploy lastest tag and master branch to github. -url=$(git remote get-url github >/dev/null) +url=$(git remote get-url github >/dev/null 2>&1) if [[ $? -ne 0 ]]; then echo 'add github remote' git remote add github git@github.com:debugly/ijkplayer.git fi -tag=$(git describe --abbrev=0) +echo '=== will getch github tags ===' +git fetch github --tag echo '=== will push master branch to github ===' git push github master -echo "=== will push ${tag} tag to github ===" -git push github ${tag} --force - +tag=$(git describe --abbrev=0 --tags) +echo "=== latest tag is ${tag} ===" +#git push github ${tag} --force git remote remove github \ No newline at end of file