update publish.sh
fix bug