Skip to content

Deploy to GitHub Pages

  1. Click Settings in the topbar, then open the Deployment tab.
  2. Under GitHub Pages, paste your personal access token.
  3. Click Test connection to confirm the token can access GitHub.
  4. Pick a Repository from the list. If it is not listed, create it on GitHub first, then refresh the repository list in Swebsy.

  5. Optionally enter a custom domain (e.g. www.example.com). Swebsy writes a CNAME file for you.

  6. Click Save.
Swebsy Deployment settings open to the GitHub Pages configuration fields
GitHub Pages configuration lives in Settings → Deployment.
  1. Click the Deploy menu in the topbar.
  2. Select GitHub Pages.
  3. The Deploy review modal opens, showing the target repository, live URL, pages, upload size, and any warnings.

  4. Review the plan, then click Deploy now.
  5. A progress indicator shows while Swebsy builds and publishes your site to GitHub.

The Deploy dropdown open in the Swebsy top bar, with GitHub Pages highlighted
Choose GitHub Pages from the Deploy menu.
The Deploy review modal showing a GitHub repository, live URL, pages list, and Deploy now button
Review the generated deployment plan before clicking Deploy now.

After deploying with a custom domain configured:

  1. In your DNS provider, add a CNAME record pointing www.example.com<owner>.github.io.
  2. In your GitHub repository settings, go to Pages and verify the custom domain.

GitHub automatically sets up a secure https:// connection for your domain (takes a few minutes).

Common issues

“Permission denied” error — your token needs repo scope (classic), or fine-grained permissions that let Swebsy write repository contents and configure Pages for the selected repository. Check the token’s permissions on GitHub.

Repository not listed — confirm the token can access that repository, then refresh the repository list. For fine-grained tokens, make sure the repository is included in the token’s repository access list.

Blank page after deploy — GitHub Pages may need a few minutes to activate on first deploy. Also check Settings → Pages in the repository to confirm it is publishing from the gh-pages branch.

Custom domain shows a certificate error — DNS changes take time to propagate. Wait 15–30 minutes and try again.

Assets load with wrong paths — if your repository is at owner/repo, assets should be relative-path referenced. Check that you haven’t hardcoded absolute paths starting with /.