Move publishing steps into a script