Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,090 of 9,090 pages
About the help in other languages
All help pages

Other git hosts: GitLab, Gitea and your own server

Publish the static copy to GitLab Pages, Codeberg or Gitea pages, or a git repository on your own server - the target with Kind=git, signing in with a token or a deploy key, and what each host needs to serve the files.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/static-publishing/other-git-hosts-gitlab-gitea-and-your-own-server.md

On this page

Other git hosts: GitLab, Gitea and your own server

Static publishing pushes to any git repository. GitHub Pages is only the most common place; the same build goes to GitLab, to a Gitea or Forgejo server, to Codeberg, or to a bare repository on a server of your own.

What you'll have at the end

A target that publishes to the git host of your choice, and that host serving the files.

The target

In step 2 of the wizard choose another git host (Kind=git). Then:

  • Git address: https://gitlab.com/<group>/<project>.git, [email protected]:<owner>/pages.git, or ssh://[email protected]/srv/git/site.git. Never with a password in it.
  • Signing in: a token in Setup > Secrets (most hosts accept a project or personal access token over https://), or a deploy key for an SSH address. Make the key on the target's Deploy key page and add its public half to the repository with write access. None works for a repository on the same server.
  • Branch and folder: what the host serves from (see below).

The GitHub steps (creating the repository, switching Pages on, the DNS check against GitHub) are not offered for Kind=git; you do these on the host. Build, preview, publish, history and rollback work the same.

What each host needs

HostRepository and branchNotes
GitLab Pagesany project; a pipeline publishes the folder publicadd a .gitlab-ci.yml with a pages job that copies the files to public/; keep that file in the branch, the build leaves files it did not write alone
Codeberg Pagesa repository pages (or the branch pages of any repository)served at https://<owner>.codeberg.page/
Gitea / Forgejoany repositoryserving depends on the server; many use a pages server or a hook
Your own servera bare repositorya post-receive hook that checks the branch out into the web server's folder, or a web server that serves a checkout

Hosts other than GitHub may have their own size limits and terms; read them before you publish.

Check where the host puts the site: below /<project>/ like a GitHub project site, or at the root of a domain. Relative links work in both cases; set the public address for the sitemap (Links and base path).

Next step

Build, preview and publish. The push and its credentials in depth: Targets and credentials.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x