This is exactly what I do, with rsync and Github actions . Have a look at my github actions e.g. here:
rsync