-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
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
3 changed files
with
32 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Pushes a new version to PyPi | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
head -n 3 homeassistant/const.py | tail -n 1 | grep dev | ||
|
||
if [ $? -eq 0 ] | ||
then | ||
echo "Release version should not contain dev tag" | ||
exit 1 | ||
fi | ||
|
||
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD` | ||
|
||
if [ "$CURRENT_BRANCH" != "master" ] | ||
then | ||
echo "You have to be on the master branch to release." | ||
exit 1 | ||
fi | ||
|
||
python3 setup.py sdist bdist_wheel upload |
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