script to publish