Thank you for your help but after creating a .pubxml file based on publishSettings, I get this error:
Error: MsDeploy is only supported on Windows.
I think I will have to use Rider's "Publish to Custom Server" unless I can move my dev environment to a Windows machine. Thanks!