Option 1: Export and Publish Yourself
This path keeps GitHub credentials out of the builder. It is the simplest security model and ZIP export stays free.
Step 1: Export the Site
- Open your project in the Site Builder.
- Click Download ZIP.
- Extract the ZIP on your computer.
- Confirm the extracted folder contains
index.html at the root.
Step 2: Create a Repository
- Go to github.com/new.
- Name the repository, for example
my-website.
- Choose Public unless you have a GitHub plan that supports Pages for private repositories.
- Create the repository.
Step 3A: Upload in the Browser
- Open your new repository on GitHub.
- Choose uploading an existing file or Add file > Upload files.
- Drag in the exported files and folders, including
index.html.
- Commit the upload to the
main branch.
Step 3B: Or Push with Git
Open Terminal, navigate to your site folder, and run:
git init
git add .
git commit -m "Initial site commit"
git branch -M main
git remote add origin https://github.com/YOUR-USERNAME/YOUR-REPO-NAME.git
git push -u origin main
Replace: YOUR-USERNAME with your GitHub username and YOUR-REPO-NAME with your repository name.
Step 4: Enable GitHub Pages
- Go to the repository on GitHub.
- Open Settings.
- Open Pages in the sidebar.
- Set the source to Deploy from a branch.
- Select main and the folder where your site files live, usually /root.
- Save. Your site will publish at
https://YOUR-USERNAME.github.io/YOUR-REPO-NAME.