The script I use in the video to upload the React app to Github Pages:
```
#!/usr/bin/env sh
abort on errors
set -e
env PUBLIC_URL=https://tomherman11.github.io/host-re... npm run build
cd build
git init
git add -A
git commit -m 'deploy'
deploying to https://{USERNAME}.github.io (see https://pages.github.com for instructions)
git push -f [email protected]:{USERNAME}/{USERNAME}.github.io.git main
deploying to https://{USERNAME}.github.io/{REPO}
git push -f [email protected]:TomHerman11/host-react-app-on-github-pages.git main:gh-pages
```
#react #github #githubpages
Chapters:
0:00 Intro & Examples
0:27 Create a new public repository in Github
1:10 Create a React app
3:30 Check Pages settings in Github
4:14 Deployment script to Github Pages
6:56 Results