This is a plugin which ideally should never be needed, but I had to write it because “I suppose it is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail.”
WordPress is installed on my Desktop. Once Lektorify plugin is installed and activated all you need to do is give it the path of your Lektor project on the settings page. Whenever you create a new post or update a post, the plugin will create proper directories, the content.lr file and copy all the images attached to post to the directory.
Rest of my workflow which was already in place consists of running lektor build command with –watch flag and finally do a git commit and git push to deploy/publish the post on to the remote site.