build template file workflow