Subdomain with my own domain

Hello,
How can I make a site with a subdomain on my own domain that already is linked with a page on Github?
Thanks.

you may want to check this out

https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages