Skip to content

Instantly share code, notes, and snippets.

@remorses
Created March 10, 2019 15:34
Show Gist options
  • Save remorses/ef770e908e2d8f84ace755312cb8a4eb to your computer and use it in GitHub Desktop.
Save remorses/ef770e908e2d8f84ace755312cb8a4eb to your computer and use it in GitHub Desktop.
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