Instead of "publish[ing] the project and upload[ing] it to
the server," why can't you simply generate to the local machine and
then publish to the server? RH does a fine job of that, and will
only publish new or changed files on subsequent generate/publish
instances. Wherever the output folder is on the server, I'd empty
it completely and then publish a clean output.
Good luck,
Leon