deplying app only if build succeed