You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
331 B

#!/bin/bash
set -e
cd "$(dirname $0)"/..
ROOT=$(pwd)
VERSION=$(grep __VERSION__ $ROOT/octodns/__init__.py | sed -e "s/.* = '//" -e "s/'$//")
git tag -s v$VERSION -m "Release $VERSION"
git push origin v$VERSION
echo "Tagged and pushed v$VERSION"
python setup.py sdist
twine upload dist/*$VERSION.tar.gz
echo "Uploaded $VERSION"