The command is
obj = CloudExport[frames, "GIF"]
To make it loop, use
obj = CloudExport[frames, "GIF", AnimationRepetitions->Infinity]
This will create a private object by default, but you can publish a public copy of it it for anyone to see using
CloudPublish[obj]