Lesson 5: Advanced Deployment and Automating Updates

Domain Names

If you want a custom domain like www.myportfolio.com:

  1. Purchase a Domain: Use registrars like Namecheap, GoDaddy, or Google Domains.
  2. Connect Your Domain: Update your domain’s DNS settings to point to GitHub Pages. GitHub provides detailed instructions for this.

Example DNS Configuration:

  • Type: A
  • Name: @
  • Value: 185.199.108.153 (GitHub Pages IP)

Automating Updates with Git

Once your website is live, you might want to update it frequently. Learn to use Git, a version control system, to automate changes.

Setting Up Git Locally

  1. Install Git on your computer from git-scm.com.
  2. Clone your GitHub repository: git clone https://github.com/username/my-portfolio.git
  3. Make changes to your local files.
  4. Push updates to GitHub: git add . git commit -m "Updated website" git push

Advanced Deployment

If you want advanced features:

  1. Netlify/Vercel: Drag-and-drop deployment with free custom domain options.
  2. FTP Hosting: Use tools like FileZilla to upload files to a server manually.
  3. CI/CD Pipelines: Automate testing and deployment with tools like GitHub Actions.