move main logic to seperate file and create seperate dev and prod actions executed on develop and main branch respectiveley