Skip to content

Commit

Permalink
Add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Jun 15, 2018
1 parent 3e21357 commit 25b8a61
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions script/release
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh
# Pushes a new version to PyPi.

cd "$(dirname "$0")/.."

CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`

if [ "$CURRENT_BRANCH" != "master" ]
then
echo "You have to be on the master to release."
exit 1
fi

rm -rf dist
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/* --skip-existing

0 comments on commit 25b8a61

Please sign in to comment.