Add branch build script.

Also add conditional to `gem_publish` call to prevent branch builds from attempting to publish the gem.