Update the guides only when on master

Updating the guides makes no sense for work on a branch as only the
latest release should be featured in the guides.
Update the API documentation only on master

Updating the API for past releases only adds more work as it needs to
then be undone.