Created
March 10, 2019 15:34
-
-
Save remorses/ef770e908e2d8f84ace755312cb8a4eb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
set -ex | |
cd `dirname ${BASH_SOURCE[0]}` | |
test -f ./VERSION || (echo "file VERSION containing current version is needed" && exit 1) | |
git pull | |
rm -rf *.egg-info | |
rm -rf dist | |
rm -rf build | |
docker run --rm -v "$PWD":/app treeder/bump patch | |
python3 setup.py sdist bdist_wheel | |
python3 -m twine upload dist/* | |
version=`cat VERSION` | |
rm -rf *.egg-info | |
rm -rf dist | |
rm -rf build | |
git add -A | |
git commit -m "version $version" | |
git tag -a "$version" -m "version $version" | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment