moving build to publish.sh