Menu

How I open-sourced part of a private site with one GitHub Action
📰

How I open-sourced part of a private site with one GitHub Action

DEV Community: github·Hugo Larsson·1 day ago
#oEB76pbf
#devtogithub#technology#devto#dev#tools
Reading 0:00
15s threshold

MCToolsHub is a small site with browser tools for Minecraft server owners: an MOTD editor, a server.properties generator, an SRV record helper and so on. It runs on a Cloudflare Worker from a private repo. The tools are the part people actually use, and I wanted them to be open so anyone could fix a bug or add a tool. The rest of the site (routing, guides, ads, SEO bits) I wanted to keep private.

This is how I split it up, and the one rule I set for the sync.

The layout

The public repo, mctoolshub-tools , holds nothing but the tools:

tools/ order.json # which tools exist, in what order motd-generator/ tool.json # title, description, how-to steps, FAQ panel.html # the markup for the tool itself ... assets/ style.css tools.js # all client-side logic scripts/ build.mjs # local preview, no dependencies

Enter fullscreen mode

Exit fullscreen mode

Each tool is a folder with a JSON file and an HTML fragment. All the JavaScript lives in one file in assets/ .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.