Yes, you can. Here's an example of how one Leanpub author does it:http://natedickson.com/2018/08/automation-for-authors