3. Connect GitHub
What you get: manage listings without touching code. A content editor at /admin/ on your site:
first on your own computer, then on your live site, from anywhere, signed in with GitHub. After this
step, every change goes live by itself. Steps 1 to 3 make a complete, working directory.
Setting up in your browser instead? Start here → 3. Connect GitHub.
You need: step 1 (Put your site online), Git (What you’ll need), Chrome or Edge to try the editor on your computer, and a free GitHub account to put it on your live site.
What GitHub is for
Section titled “What GitHub is for”GitHub keeps your site’s files and their history, in a private storage space (a “repository”) that only you can see. The editor saves your changes there, and Cloudflare builds your site from there. It’s free.
With the setup
Section titled “With the setup”Run npm run setup and choose Connect GitHub. It:
- Turns on the editor’s history for your folder, if needed (
git init), and the editor itself. Try it right away: runnpm run devin a second terminal window, openhttp://localhost:4321/admin/in Chrome or Edge, and choose Work with Local Repository. - Asks whether to put the editor on your live site too. The rest of this step is for that.
- Signs you in to GitHub, if you aren’t yet. It explains first, then shows a code and opens GitHub: type the code there and authorize it. You don’t need to give any organisation access, unless your site’s repository belongs to one. The sign-in is kept in your system’s keychain; “Sign out of GitHub” in the setup’s menu removes it.
- Suggests a name for your site’s private storage space, under your GitHub username, and creates it (it asks first).
- Saves a first copy of your site and uploads it (a “commit”, then a “push”). Your passwords and keys are always left out. If Git doesn’t know your name yet, it offers your GitHub username and GitHub’s private email address for you.
- Asks who will edit: just you, or a team (each person signing in with GitHub: a few more steps on GitHub, listed for you).
- Makes your GitHub app, on a host that runs functions (Cloudflare, Netlify): one app for signing in to the editor, automatic submissions and sponsorship payments. It opens GitHub’s form already filled in; you click Create GitHub App for your username, then install it on this one repository (GitHub’s install page starts at All repositories: choose Only select repositories). It puts the app’s five values on your host without showing them (Signing in).
- Connects Cloudflare to your repository, so every change goes live by itself (below).
- Offers the daily rebuild.
- Offers two GitHub settings, asking before each (below).
- Puts the editor live. From now on, putting changes live means uploading them: Cloudflare builds the site and puts it live in about 3 minutes.
Connect GitHub
Section titled “Connect GitHub”By hand: create a private repository on GitHub, push your folder to it, and set cms.repository
in src/config/directory.config.json to "your-username/your-repository".
If Cloudflare or Netlify builds your site from that repository, you can leave cms.repository empty:
the build finds the repository by itself.
Automatic updates
Section titled “Automatic updates”Cloudflare builds your site whenever it changes on GitHub, and puts it live. The setup opens your site’s settings in Cloudflare and lists what goes there: connect your repository to your Worker’s builds (Cloudflare’s help), with:
- The repository: yours. If GitHub asks, allow Cloudflare to see only that repository.
- Build command:
npm run build. Deploy command:npx wrangler deploy. - Builds for branches other than main (previews): see below.
Check: your next change on GitHub shows as a build in your Worker’s deployments, and is live a few minutes later.
Previews
Section titled “Previews”With previews on, each change waiting for your approval (a submission, or a listing saved as a draft in the editor) gets its own preview address, so you can see it as a page before you approve it.
- The trade-off: a preview address is public to anyone who has it, though never indexed by search engines (every preview page says “noindex”, whatever its content), and each preview is a build that counts toward Cloudflare’s monthly build allowance.
- The setup’s choice: on for a private repository, where only you can see the changes waiting; off for a public one, where anyone could find an unapproved submission’s preview.
- New submissions: even with previews on, a submission nobody has looked at yet gets a one-page preview that says previews of submissions are off, until you save a change to it in the editor. To preview new submissions as sent, turn on Settings → Submissions → Advanced → Previews of submissions.
- To change it: the Builds for branches other than main switch in Cloudflare (above), and
"preview_urls"inwrangler.jsonc. - “Build Failed” on every submission or paid booking? Cloudflare’s build of a branch other than
main ends with
npx wrangler preview, which stops without a"previews"block inwrangler.jsonc. New copies have it. In a copy made before 1.1.0, add the line"previews": {},under"preview_urls"inwrangler.jsonc;npm run doctorsays so too.
Signing in
Section titled “Signing in”-
With GitHub (the easy way): one click on Sign In with GitHub on
/admin/. It needs your site’s GitHub app: the setup makes it (above), or the Set up your site → Connect GitHub page does, in your browser. That page opens by itself the first time someone clicks Sign In with GitHub before sign-in is set up, and is always at/admin/setup.html. Its three steps:- Make your GitHub app. One click opens GitHub’s form with its name filled in; click Create GitHub App for your username. It’s private, and can only reach the repositories you install it on.
- Install it on your site’s repository. GitHub starts at All repositories: choose Only select repositories, then your site’s.
- Add your five keys to your host. Each is in its own box, with its name and value. On
Cloudflare, the page links straight to your Worker’s settings: add each there, for
Production, as a runtime variable (not a build variable):
CMS_GITHUB_CLIENT_ID,CMS_GITHUB_CLIENT_SECRET,GITHUB_APP_ID,GITHUB_APP_INSTALLATION_ID,GITHUB_APP_PRIVATE_KEY(Cloudflare’s help). Add each as a Secret, never as plain Text, and never copy a key intowrangler.jsonc: Cloudflare suggests that for plain text, and it would put the key in your site’s files on GitHub.
The keys take 1 to 3 minutes to start working. The page checks them with GitHub by itself (it asks your site’s
/api/cms/status, which answers only “ok”, “missing” or “wrong”, never a key; it tells anyone whether sign-in works, and only a signed-in editor how the other keys are), and says when sign-in is ready. A key lost before it was copied can be made again on the app’s page on GitHub: the page links to it.Paste the keys only into your host’s settings: never into a chat or an email. If you use a clipboard history app, clear it afterwards. Sign-ins last 8 hours; then it’s one click again.
-
With an access token: on GitHub, make a fine-grained token for this one repository, with Contents and Pull requests set to read and write (and Checks, read-only, for the editor’s note on whether your change is live). Then Sign In Using Access Token on
/admin/. It works on every host, even one that runs no functions.
The editor, signed in (on a new site, the steps panel opens over it first):

Who can edit
Section titled “Who can edit”Only you and the people you invite to your site’s repository can edit it. Someone who signs in with any other GitHub account is told: “Your GitHub account doesn’t have access to edit this site. If you should have access, ask the site’s owner to invite you.”
To invite a team member:
- They make a free GitHub account, if they don’t have one, and tell you their username.
- Invite them to your site’s repository by that username, with the Write role (GitHub’s help).
- They accept the invitation (GitHub emails it), then sign in on
/admin/with Sign In with GitHub.
With One-click publishing on (Settings → Features), someone with Write can’t save anything: GitHub’s review rule (below) refuses it, and the editor shows GitHub’s error. Turn One-click publishing off, and they can add and change listings and placements as drafts, for you to publish. Or invite them as Admin, or, in an organisation, let their team skip the review (Reviewing in the CMS).
To stop someone editing, remove them from the same place on GitHub.
GitHub settings
Section titled “GitHub settings”The setup offers each of these, and asks first:
- Let the weekly link check report broken links as suggestions for you to approve: Settings → Actions → General → Allow GitHub Actions to create and approve pull requests.
- Protect your live site from accidental changes: a ruleset on
mainso every change needs an approval first, which only you, as admin, can skip. On a private repository this needs a paid GitHub plan; the setup says so, and the site’s own checks protect it instead (protectingmain).
Try it
Section titled “Try it”Your editor is at https://<your site>/admin/. Edit a listing and save it: a few minutes later, it’s
live. The setup’s next steps list what to try.
Your settings
Section titled “Your settings”The editor’s Settings section holds what you’d otherwise change in the config files, each with a plain description under it. Each page shows the essentials first, and the rest under Advanced, a group that stays closed until you open it:
| Page | Essentials | Under Advanced |
|---|---|---|
| Your site | The name, the address, the description, the logo, the icon, the look, the main colour, the default theme | The dark colour, corners, spacing, the homepage’s top, the listing cards, how much moves, the homepage’s background, your title in search results, the blog’s description, and your logo for light backgrounds |
| Words | What one entry, and more than one, are called across the site (“tool”, “tools”) | |
| Forms | The form service and address, for every form (Connect your forms) | A different address for the Contact form |
| Sponsorships | Selling places on the site, how sponsors pay, the currency, and each package: its name, price, how long it runs, where it shows | Each package’s short name, what’s included, how many sponsors at once, its payment link |
| Features | The example listings, saved listings, recently viewed, collections, One-click publishing | The quiz, the recently added page, embeds, feeds, the annual report, “Report an issue”, region and tag pages |
| Submissions | Automatic submissions, the spam check’s site key (Automatic submissions) | AI suggestions, Previews of submissions |
| Footer and header | The footer’s text and email address | The header button, the social links |
| Analytics | The service that counts your visitors, and its ID | |
| Services | The videos, maps, booking pages and other embeds your site lets in | Other addresses |
| Menu | The links at the top and bottom of every page | |
| Newsletter | Your newsletter service, its form’s embed code (paste all of it: your site keeps only what it needs), where the form shows, and its words |
A save goes straight to your site’s repository, and the site rebuilds in a few minutes. Colours: type or
paste your brand colour’s code (like #3355aa), or pick it; the lighter and darker shades are worked
out so text stays readable. Keys and secrets are never set here: they go in your host’s settings.
If a setting can’t be used (say, a price edited by hand on GitHub), your site keeps its previous value, and a note in the editor says which setting to fix.
The steps panel
Section titled “The steps panel”When the editor opens on a new site, Your directory is live! Here’s what to do next lists the setup’s steps in order, each with a button that opens the right page, a tick once it’s done, and the next one highlighted; then the optional extras under Optional: more your site can do. It reopens from the Steps button at the bottom left. A step is ticked when what it sets up is true (the settings files on GitHub, your listings, the keys working), so a step done here in the Terminal shows as done there too.

Beside Steps, Site status shows what’s true of your site now, each line linking to where you change it: your last update (live, being published, or failed, with what to do), what’s waiting for you (submissions, paid bookings, anything to fix), your listings, your connections (forms, the spam check, payments, analytics, the newsletter), and your SixtyList version, with what’s new when a newer one is out. The button counts what’s waiting.
If your change didn’t go live
Section titled “If your change didn’t go live”See Troubleshooting → If your change didn’t go live.
If something’s wrong
Section titled “If something’s wrong”Run npm run doctor. Signed in through the setup, it also checks the daily rebuild’s secret and the two
GitHub settings.