Added support to upload on successful build.