Deploy-proof custom actions for Custom Module

Hi there,

I would like to add a custom action in custom module. But I didn’t figured it out.

I created new controller under paths listed below, but these files deleted after deploy from module builder:

  • custom/Extension/modules/[module]/
  • custom/modules/[module]/

What is safe folder for extending custom module?