forked from bilibili/ijkplayer
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 [email protected]: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 |