The solution previously provided works in instances where you want to zip all the contents of a particular directory. If you want to zip select files from a directory you could do the following:
In below example following are inputs to a code stage
...