First, create the repository
Then, create the DNS record: Create the record in hostinger using CNAME and your GitHub page name
Finally, go to the repository main page, settings --> Pages , click on "Enforce HTTPS", and enter your domain or subdomain
Wait a few moments, then click on Enforce HTTPS again. The certificate should be generated