Make deploy task depends on generate task