Pre/Post build step in UBT

UnrealBuildTool just compiles stuff; packaging is done but a tool called AutomationTool (or UAT for short).

If you want to include a file from the source directory when it’s packaged, you can mark it as a “runtime dependency” from a .build.cs file. There are plenty of examples of that if you search for “RuntimeDependencies.Add”.