Member-only story

Publishing your GitHub markdown on Cloudflare pages

tjtharrison
9 min readJul 18, 2023

--

AKA my journey migrating my CV from GitHub pages to Cloudflare pages.

Photo by Possessed Photography on Unsplash

This article is going to cover my learnings while migrating my CV which was hosted on GitHub pages (https://readme.tjth.co) to the same subdomain hosted on Cloudflare pages.

But why..?

The reason for this move was triggered by some articles I read about how GitHub pages can be hijacked if a GitHub repo with a custom domain and pages configured is abandonned (regardless of whether or not the CNAME for your GitHub pages site is pointed at your account..).

I did my own round of testing after reading this, using two GitHub accounts (lets call them tjtharrison and tjtharrison2 for simplicity). I started off by creating a GitHub pages site with a custom domain pointing at a repository in my GitHub account. I confirmed this was being served correctly via the custom domain, before archiving this repository (Leaving the CNAME pointing to my GitHub account subdomain — tjtharrison.github.io).

Immediately after the other repository was archived, I was able to enable GitHub pages and use the same custom subdomain used for the GitHub pages site in my GitHub account, on tjtharrison2 (Even though the CNAME was pointing at my primary GitHub account).

--

--

tjtharrison
tjtharrison

Written by tjtharrison

DevSecOps | Security | Infrastructure

No responses yet