Skip to content

Instantly share code, notes, and snippets.

@robhudson
Created February 3, 2011 18:00
Show Gist options
  • Save robhudson/809876 to your computer and use it in GitHub Desktop.
Save robhudson/809876 to your computer and use it in GitHub Desktop.
def roll_release(version):
local('git flow release start %s' % (version,), capture=True)
local('sed -e "s/\'AWS_PREFIX\':.*$/\'AWS_PREFIX\': \'%s\', # cache bust/g" -i \'\' potluck/settings/base.py' % (version,))
local('git commit -am \'Bumped media version to %s\'' % (version,))
local('git flow release finish -m %s -p %s' % (version, version), capture=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment