This article describes how to deploy a modern virtual master page using the site deployer.
The master page file is a template and so can be deployed via the content directory. The file would be located at:
To deploy the file, you must use the options value
Use the central site (if applicable) as the spurl.