#!/usr/bin/env ruby
puts 'Tag version?'
tag = gets.chomp
tag = "v#{tag}" unless tag[0] == 'v'
`git commit -m 'Bump version "#{tag}"'`
`git push origin master`
`git co stable`
`git pull origin stable`
`git merge master`
`git tag "#{tag}"`
`git push origin stable`
`git push --tags`
`git co master`