Continuation of previous post about seting Custom Domain on GitHub Pages. Today I seting custom subdomain on GitHub Pages.

Steps to configure custom subdomain

  1. First we need repository. I’ve created subdomain repository for this purpose.

  2. Now go to repository settings and set subdomain in GitHub Pages -> Custom domain section. setting custon domain address on GitHub Pages

  3. Go to your DNS provider and update records. Here is my records:

    | Name      | Type  | Value                 |
    | subdomain | A     |       |
    | subdomain | A     |       |
    | subdomain | A     |       |
    | subdomain | A     |       |

    IPs adresses in A records could be vary, so it is worth checking the documentation to see if they are up to date.

Now everything is set up correctly and my subdomain is working. It may take a while for the page to be accessible by our custom subdomain - this time depends on DNS propagation.