All posts

image from Automating Leanpub book publishing with Hammerspoon and CircleCI

Automating Leanpub book publishing with Hammerspoon and CircleCI

April 16, 2019

I am the author of two books: Learning CFEngine and Learning Hammerspoon, both self-published using Leanpub. The source of my books is kept in GitHub repositories. In this post I will show you how I use the Leanpub API together with Hammerspoon and CircleCI as part of my workflow, to automate and monitor the building, previewing and publishing of my books.

Leanpub basics

First, some basic concepts about the Leanpub API. See the documentation for the full details, I’m only mentioning clear some things you need to know to understand the rest of this post.