Manually adding sitemap to github pages

I connected my GitHub pages to a custom domain.
after that i generated a sitemap.xml file and placed it on the root folder (where the index.html is)
but when I try to access my sitemap.
ie, it’s just showing a blank white screen.

so what is the correct way to add sitemap
and also how to do the same with robots.txt

Hi @preyasprathap, welcome to the GitHub Community Forum!

Adding the file to your repository’s publishing source should make it available, so it’s strange that it’s not. Can you drop a link to your repository so I can take a look at why it’s not working?