Create tag and push

I want to create a job where it runs on Saturday at particular time. and I want to fetch the latest commit on main branch at this time. and tag the commit and push the same to remote.
here I want to use only ssh to do this. how can I config this in my script. need some examples about how to config this. (with https I don’t want to maintain ssl certificates and our domain doesn’t support push from https)
or is there any other way to do the same?

Need this in windows!