Deployment Instructions

This site is created exclusively with the use of ChatGPT.

Deploying to GitHub Pages via CLI

  1. Install Git

    Ensure that Git is installed on your system. You can download it from git-scm.com.

  2. Initialize a Local Repository

    Open your terminal and navigate to your project directory:

    cd /path/to/your/project

    Initialize a new Git repository:

    git init
  3. Commit Your Code

    Add your files to the repository and commit them:

    git add .
    git commit -m "Initial commit"
  4. Create a GitHub Repository

    Log in to your GitHub account and create a new repository. Do not initialize it with a README or any other files.

  5. Add Remote Origin

    In the terminal, add the remote repository:

    git remote add origin https://github.com/yourusername/yourrepository.git
  6. Push to GitHub

    Push your code to the main branch:

    git push -u origin main
  7. Enable GitHub Pages
    1. Go to your repository on GitHub.
    2. Click on Settings > Pages.
    3. Under Source, select main branch and root directory (/).
    4. Click Save.

Setting Up a Custom Domain on GitHub Pages

  1. Add a CNAME File

    In your project directory, create a file named CNAME (no extension) and add your custom domain inside:

    yourdomain.com

    Commit and push this file:

    git add CNAME
    git commit -m "Add custom domain"
    git push
  2. Configure DNS Records

    Log in to your domain registrar (e.g., GoDaddy, Namecheap) and set up the following DNS records:

    • A Records:
      Host Points to
      @ 185.199.108.153
      @ 185.199.109.153
      @ 185.199.110.153
      @ 185.199.111.153
    • CNAME Record:
      Host Points to
      www yourusername.github.io
  3. Enforce HTTPS
    1. Go back to your GitHub repository settings under Pages.
    2. Make sure your custom domain is correctly listed.
    3. Check the option Enforce HTTPS.

Now your website should be live at your custom domain using GitHub Pages!