In this plugin you can create an event listener, which listens to the article create and update event. You can take a look at the Ingest Plugin, there we listen to the article publish and delete events.
The proper event listener configuration lines for you would be: