How do I publish a code I’ve written in brackets into a website? Is there anyway to do it for free?
you can publish for free on github pages:
this is a good starting point
otherwise, you need to find another free alternative free hosting
but having a VPS and a domain is pretty cheap.