deploy task updated to build first