Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 30 lines (24 sloc) 0.641 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#!/bin/bash

status=$(git status | head -n 1)
if [[ "$status" != "# On branch master" ]]; then
echo "Not on master branch. Goodbye"
    exit 1
fi

version=$(python -c "import reddit; print reddit.VERSION")
read -p "Do you want to deploy $version? [y/n] " input
case $input in
    [Yy]* ) break;;
    * ) echo "Goodbye"; exit 1;;
esac

python setup.py sdist upload -s
if [ $? -ne 0 ]; then
echo "Pushing distribution failed. Aborting."
    exit 1
fi

git tag -s $version -m "Version $version"
if [ $? -ne 0 ]; then
echo "Tagging version failed. Aborting."
    exit 1
fi

git push bboe master --tags
git push mellort master --tags
Something went wrong with that request. Please try again.