make nightly-publish script parametric