Just upload json and media files
Unfortunately it is default Publii behaviour. The only solution would be use manual deploy option, then run custom shell script after rendering of the website, which will remove unnecessary files and then will upload final output to the server.
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!