how to puplish a file