Prerequisites
- A GitHub account with a repository containing your static site
- A statichost.uk account (sign up free)
Step 1: Create a Site
- Log in to your statichost.uk dashboard
- Click New Site
- Enter your site name and GitHub repository URL
- Select your branch (usually
main) - Choose your framework:
- Hugo — if your repo contains a Hugo site
- Jekyll — if your repo contains a Jekyll site
- Static — if your repo contains pre-built HTML files
- Set the publish directory (e.g.,
publicfor Hugo,_sitefor Jekyll,.for static)
Step 2: Add Deploy Key (Private Repos)
If your repository is private:
- In your site settings, copy the SSH deploy key
- Go to your GitHub repository → Settings → Deploy keys
- Click Add deploy key
- Paste the key and give it a title (e.g., “statichost.uk”)
- Leave “Allow write access” unchecked — we only need read access
Step 3: Set Up Webhooks
To enable automatic deployments when you push:
- In your site settings, copy the Webhook URL and Webhook secret
- Go to your GitHub repository → Settings → Webhooks
- Click Add webhook
- Set the Payload URL to your webhook URL
- Set Content type to
application/json - Paste your webhook secret
- Select “Just the push event”
- Click Add webhook
Step 4: Deploy
Push a commit to your configured branch, or click Deploy in your dashboard. Your site will be built and live within seconds at your free subdomain.
Adding a Custom Domain
- Go to your site → Domains
- Click Add Domain and enter your domain name
- Add the DNS records shown (CNAME or A record) with your domain registrar
- Click Verify — once DNS propagates, your TLS certificate is issued automatically
- Set as primary domain to redirect all traffic