extend this plugin to allow publishing on fail or on success (or both)