Fixed publishFiles to batch process all the files and create a single publish commit