Adding smartfile publish script