Separate publishing script from build