Adding file to jar file before build finishes

I want to add a file before a builůd finishes(like a config yml file or smth liek that), how can it be done?
Was this page helpful?