Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.17 KB

File metadata and controls

33 lines (26 loc) · 1.17 KB

Simple Website (GitHub Pages)

This repo contains a single-page website you can publish with GitHub Pages.

Quick Publish (no terminal)

  1. Go to https://github.com/new and create a repo (Public is fine). Name it whatever you like, e.g. simple-site.
  2. Upload these files from this folder (Add fileUpload files):
    • index.html
    • .github/workflows/deploy.yml
    • LICENSE
  3. Commit to the main branch.
  4. Go to Actions → enable workflows if prompted. The Deploy static site to Pages workflow will run and publish.
  5. When it finishes, find your site at Settings → Pages or from the workflow output URL (e.g., https://<your-username>.github.io/<repo>/).

Command Line

# in a terminal
git clone https://github.com/<your-username>/<repo>.git
cd <repo>
# copy these files into the repo folder, then:
git add .
git commit -m "Initial site"
git push origin main
# GitHub Actions will publish automatically

Customize

  • Edit index.html for content and styling.
  • Replace the favicon in the <head> if you like.
  • If you put your site files inside a /docs folder, update the upload-pages-artifact path in the workflow accordingly.