Created a function to publish structures and scripts with equal ease