Creating a repository for your site
You can either create a repository or choose an existing repository for your site.
If you want to create a GitHub Pages site for a repository where not all of the files in the repository are related to the site, you will be able to configure a publishing source for your site. For example, you can have a dedicated branch and folder to hold your site source files, or you can use a custom GitHub Actions workflow to build and deploy your site source files. To use GitHub Actions as a publishing source for GitHub Pages, a site administrator must enable GitHub Actions for GitHub Enterprise Server. For more information, see Enabling GitHub Actions for GitHub Enterprise Server.
If you want to create a site in an existing repository, skip to the Creating your site section.
-
In the upper-right corner of any page, select , then click New repository.
-
Use the Owner dropdown menu to select the account you want to own the repository.
-
Type a name for your repository and an optional description. If you're creating a user or organization site, your repository must be named
<user>.github.io
or<organization>.github.io
. If your user or organization name contains uppercase letters, you must lowercase the letters. For more information, see What is GitHub Pages?. -
Choose a repository visibility. For more information, see