Enhancement: Added OnResourceAutoPublish system event
Merge remote-tracking branch 'upstream/pr/11442' into pr/11442

* upstream/pr/11442:
  Enhancement: Added OnResourceAutoPublish system event