两者都不是。
既不能说 invite to do,也不能说 invite doing。
应该是 be invited to do sth.
应邀做某事。
或 invite sb. to do sth.
邀请某人做某事。
He was invited to attend the meeting.
他被邀请参加会议。
Lily invite her friends to travel on the weekend.
丽丽邀请她的朋友这周末去旅行。