Загрузка...

How To Deploy a React App on GitHub Pages (Two Different Ways)

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!
https://www.youtube.com/@thecommoncoder?sub_confirmation=1
--------------------------------------------------------------------------
✅ PREREQUISETS
Install Git: ➡️ https://youtu.be/7ouVv6PFZGc
Create a GitHub Account: ➡️ https://youtu.be/RnWDKWmaQ8s
Setup SSH Keys: ➡️ https://youtu.be/6U53fsMiPm0
Create/Upload a Project on GitHub: ➡️ https://youtu.be/TXV8-IX2FXE
How To Use GitHub Pages: ➡️ https://youtu.be/5XhxR9Vs6zc
--------------------------------------------------------------------------
⏱️ 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: https://www.youtube.com/@thecommoncoder
Facebook: https://www.facebook.com/profile.php?id=61556597704873
Instagram: https://www.instagram.com/the.common.coder
X: https://twitter.com/the_common_codr
LinkedIn: https://www.linkedin.com/company/the-common-coder
Reddit: https://www.reddit.com/user/TheCommonCoder
GitHub: https://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

Видео How To Deploy a React App on GitHub Pages (Two Different Ways) канала The Common Coder
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять