Skip to content

Commit

Permalink
Added tags to the travis script
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoAcheron committed Dec 8, 2018
1 parent 77ee28e commit cfe64a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ bumpversion patch --no-tag --allow-dirty --no-commit --list > .temp
CURRENT_VERSION=`cat .temp | grep current_version | sed -r s,"^.*=",,`
NEW_VERSION=`cat .temp | grep new_version | sed -r s,"^.*=",,`

git tag "v${NEW_VERSION}"

git add .bumpversion.cfg
git add custom_components.json
git add midea.py
git add setup.py

git commit -m "[ci skip] Version Changed from ${CURRENT_VERSION} -> ${NEW_VERSION}"
git remote add origin-build https://${GH_TOKEN}@github.com/NeoAcheron/midea-ac-py.git > /dev/null 2>&1
git push --quiet --set-upstream origin-build master
git remote add build https://${GH_TOKEN}@github.com/NeoAcheron/midea-ac-py.git > /dev/null 2>&1
git push --quiet --tags --set-upstream build master

0 comments on commit cfe64a2

Please sign in to comment.