Automation for tagging and stage deployment

indent this or something. this is hard to read.