You must declare your action in your layer.xml file. Like this:

<folder name="Loaders">
 <folder name="folder">
   <folder name="any">
      <folder name="Actions">
         <file name="org-mymodule-MyAction.instance"/>
      </folder>
   </folder>
 </folder>
</folder>

Source: NetBeans FAQ