Ensure no sensitive data is in the repo before making it public.
Go to GitHub → Repository → Settings → Scroll to Danger Zone → Change repository visibility → Select Public → Confirm password and settings.