Archive to zip file

Hi, I created the below task in build.gradle that creates a zip file from the content directory and place it in destination directory. When i execute, the build runs successfully with no errors, but the zip file is not getting created in destination location.


task zip(type: Zip) {
archiveFileName = “test.zip”
destinationDirectory = file(’$HOME/test/’)

from '$HOME/actual/'

}


Log:
4:07:17 PM: Executing task ‘zip’…

Task :test:zip NO-SOURCE

BUILD SUCCESSFUL in 182ms
4:07:18 PM: Task execution finished ‘zip’.