how do i turn my datapack into a mod / jar file

i heard that the best way to make my datapack into a mod is to make the datapack as a zip file then into a jar file but it wont work for me

Continue to help post