How to publish a web project to Artifactory

Hello, Im currently working on a project to publish website artifacts to Artifactory using gradle, and I wanted to know the best way to go about doing this. From the online docs publishing a Jar is strait forward enough, but I haven’t found any examples to publish the folder contents of a website to Artifiactory. Any examples would be a great help.

Which Gradle publishing mechanism are you using (new/old, maven/ivy)?