Let's learn how to deploy a React application on GitHub Pages!
GitHub Pages is a free static site hosting service provided by GitHub. Using it however can be a little confusing when working with a project that requires a build step for deployment (React, Angular, Vue, etc). In this video, we'll walk you through two of the most common ways to deploy your React application to GitHub Pages.
When working with GitHub Pages, there are two main ways to deploy a React based project:
1. Deploy from a Branch: This method involves using a package called "gh-pages" to publish our build output to a special branch on GitHub called "gh-pages". It's quick and straightforward, and perfect for smaller projects.
2. Deploy from GitHub Actions: This method uses GitHub Actions to automate our deployment process through the use of a custom action. This option is more robust, and can help ensure your site is always up-to-date with the latest changes.
We will cover both deployment methods in this video. If you found this video helpful, please give it a thumbs up 👍 and consider subscribing for more web development tutorials!
📺 SUBSCRIBE FOR MORE!
/ @thecommoncoder
--------------------------------------------------------------------------
✅ PREREQUISETS
Install Git: ➡️ • How to Install Git on Mac and Windows! (Be...
Create a GitHub Account: ➡️ • How to Create a GitHub Account (For Beginn...
Setup SSH Keys: ➡️ • GitHub SSH Key Setup Made EASY! (Mac & Win...
Create/Upload a Project on GitHub: ➡️ • How to Upload Your Project On GitHub in 20...
How To Use GitHub Pages: ➡️ • How to Use GitHub Pages in 2025! (Beginner...
--------------------------------------------------------------------------
⏱️ TIMESTAMPS
00:00 - Introduction
00:15 - Prerequisites
00:50 - GitHub Pages Deployment Methods
01:40 - Method 1: Deploy From a Branch
07:31 - Debugging Deployment Issues
10:40 - Method 2: Deploy with Github Actions
20:57 - Debugging Deployment Issues
25:51 - Final Thoughts
26:30 - Outro
--------------------------------------------------------------------------
🌎 CONNECT WITH ME!
YouTube: / @thecommoncoder
Facebook: www.facebook.com/profile.php?id=61556597704873
Instagram: www.instagram.com/the.common.coder
X: twitter.com/the_common_codr
LinkedIn: www.linkedin.com/company/the-common-coder
Reddit: www.reddit.com/user/TheCommonCoder
GitHub: github.com/the-common-coder
--------------------------------------------------------------------------
💰 AFFILIATE DISCLAIMER
Some links in this description are affiliate links. If you make a purchase through these links, I may earn a small commission at no extra cost to you. Your support helps keep this channel running. Thank you!
#thecommoncoder #github #githubpages
コメント