make publish script fully automatic