Update publish script for release build.