CloudDeploy[expr,…] automatically deploys all definitions needed to evaluate expr, much like CloudSave.

With the default setting SourceLink->Automatic, CloudDeploy sets the source link for the deployed cloud object to be the cloud object corresponding to the current notebook. If no such cloud object exists, it sets the source link to None.