https://create-react-app.dev/docs/deployment/#github-pages
(should be public repository!!)
npm i -save gh-pages
Add in (package.json)
โโโโโโโ {
โโโโโโโ "homepage": "https://barrystone.github.io/repos-name",
โโโโโโโ "scripts": {
โโโโโโโ "predeploy": "npm run build",
โโโโโโโ "deploy": "gh-pages -d build"
โโโโโโโ }
โโโโโโโ }
npm run deploy
Go to repos setting, set Source to (gh-pages-branch) in github pages.
Reference Turtorial: