{{ define "title" }}{{ .Tab }} settings · {{ .RepoInfo.FullName }}{{ end }} {{ define "repoContent" }}
{{ template "repo/settings/fragments/sidebar" . }}
{{ template "repoSiteSettings" . }}
{{ end }} {{ define "repoSiteSettings" }}

Git Sites

Serve a static site directly from this repository. Choose a branch and the directory containing your index.html. Only repository owners can configure sites.

{{ if and .SiteConfig .OwnerClaim }} {{ if .SiteConfig.IsIndex }}
{{ i "circle-check" "size-4 shrink-0" }} live at {{ .OwnerClaim.Domain }}
{{ else }}
{{ i "circle-check" "size-4 shrink-0" }} live at {{ .OwnerClaim.Domain }}/{{ .RepoInfo.Name }}
{{ end }} {{ else if and .SiteConfig (not .OwnerClaim) }}
{{ i "triangle-alert" "size-4 shrink-0" }} site is configured but not live — claim a domain to publish it.
{{ else if and (not .SiteConfig) .OwnerClaim }}
{{ i "circle-dashed" "size-4 shrink-0" }} not enabled — configure a branch below to publish to {{ .OwnerClaim.Domain }}.
{{ else }}
{{ i "circle-dashed" "size-4 shrink-0" }} not enabled — configure a branch below and claim a domain to publish.
{{ end }}

Branch

The branch to build and deploy the site from.

Deploy directory

Path within the repository that contains your index.html. Use / for the root, or a subdirectory like /docs.

Site type

An index site is served at the root of your sites domain. A sub-path site is served under the repository name.

{{ if .SiteConfig }}

Disable Site

Removes the site configuration for this repository. The site will no longer be served.

{{ end }}

Recent Deploys

{{ if .Deploys }}
{{ range .Deploys }}
{{ if eq .Status "success" }} {{ i "circle-check" "size-3" }} success {{ else }} {{ i "circle-x" "size-3" }} failed {{ end }} {{ if eq .Trigger "push" }} {{ i "git-commit-horizontal" "size-3" }} push {{ else if eq .Trigger "config_change" }} {{ i "settings" "size-3" }} config change {{ end }} {{ .Branch }}{{ if ne .Dir "/" }}{{ .Dir }}{{ end }} {{ if .CommitSHA }} {{ slice .CommitSHA 0 7 }} {{ end }} {{ template "repo/fragments/shortTimeAgo" .CreatedAt }}
{{ if .Error }}
{{ .Error }}
{{ end }}
{{ end }}
{{ else }}
no deploys yet
{{ end }}
{{ end }}