You have to export your game into an executable for the platform of your choice. Then zip up the folder with all the game’s files and executable, and upload that to itch.io.
AS for exporting your game, there should be plenty of documentation online about doing it.