Skip to content

Instantly share code, notes, and snippets.

@ajsharp
Created August 23, 2011 17:56
Show Gist options
  • Select an option

  • Save ajsharp/1165996 to your computer and use it in GitHub Desktop.

Select an option

Save ajsharp/1165996 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# Usage: cut-release [major|minor|tiny]
current_version = File.read("VERSION").chomp
next_version = current_version.succ
release_type = ARGV[1] || "tiny"
system("git flow release start #{next_version} && rake version:bump:#{release_type}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment