publish.sh script