the p8 manual has instructions for uploading to itch, and here’s a video tutorial (I haven’t watched it and I have no idea why it’s so long, but it’s a great channel and I’m sure it covers the basics well)
essentially you need to EXPORT -F MINES.HTML, zip up the folder it creates, then upload that