events that fire when publishing an espace

Are there any events that fire in Outsystems when an espace is being published?
Not really, no.

What are you trying to do?

OutSystems does provide read-only access to system tables which allow you to infer if an eSpace has been published and whatnot, so you could build an event system for this.

Best regards,
Ricardo Silva

Depending on what you need, you can create a timer and set the schedule to occur when published. Note that timers, being asynchronous processes, you don't have session data.