packaging: Return push-new-version to working version
This commit is contained in:
parent
f5dd5d3444
commit
65666648ac
1 changed files with 3 additions and 2 deletions
|
|
@ -16,9 +16,10 @@ CURRENT_VERSION=$(git describe --tags --abbrev=0)
|
|||
if [ $NEW_VERSION == $CURRENT_VERSION ]; then
|
||||
git tag --delete $CURRENT_VERSION
|
||||
git push --delete origin $CURRENT_VERSION
|
||||
else
|
||||
git grep --no-color -l $CURRENT_VERSION | xargs sed -i "s/$CURRENT_VERSION/$NEW_VERSION/g"
|
||||
git commit --all --message="Update version to $NEW_VERSION"
|
||||
fi
|
||||
git grep --no-color -l $CURRENT_VERSION | xargs sed -i "s/$CURRENT_VERSION/$NEW_VERSION/g"
|
||||
git commit --all --message="Update version to $NEW_VERSION"
|
||||
git tag $NEW_VERSION
|
||||
git push
|
||||
git push --tags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue