It is only a part of the effort to write a book, the major work will be in promoting it, very often publishers will ask you about your own strategy of promoting your work and if you don’t have any, they may not want to publish you.
Use social media as outlined in “How Can I Build Online Legitimacy?”