updated publish.sh to actually work