Deploying Static Websites

Learn about deploying static websites with GitHub Pages

Deploying Static Websites

GitHub Pages makes it easy to deploy static websites directly from your repository.

Deployment Methods

Automatic Deployment

  • Push to designated branch (main, gh-pages)
  • GitHub automatically builds and deploys
  • Works with Jekyll by default

GitHub Actions

  • Custom build processes
  • Support for any static site generator
  • More control over the deployment pipeline
    1. Create repository: Set up your website repository
    2. Add content: Include your website files
    3. Configure Pages: Enable GitHub Pages in settings
    4. Choose source: Select branch or GitHub Actions
    5. Deploy: Your site is live!