Octopus Deploy 2.4, scripts in sub folders will not be executed

Hello,
I am performing a POC using the Trial version of octopus. I have bundled the Deploy.ps1 inside the Nuget package with the path as tools\Deploy.ps1. Upon deploying I am getting the below error.
“The script file “tools\Deploy.ps1” contained within the package will not be executed because it is contained within a child folder. As of Octopus Deploy 2.4, scripts in sub folders will not be executed.”
I have looked into most of the discussion thread but not sure why this is happening. Can you please assist.

Regards,
HP

Hi,

Thanks for reaching out. That error means you need to have Deploy.ps1 in the root of the package (at the same level as the tools folder) for it to be executed automatically.

Regards,
Dalmiro