1. npm install

$ npm i gh-pages

2. package.json

{
	"script": {
		// ...
		"build": "react-scripts build",
		"deploy": "gh-pages -d build", // 배포 브랜치 gh-pages 에 build 폴더 push
		"predeploy": "npm run build" // 프로젝트 디렉터리 빌드
	},
	"homepage": "<https://hxxtae.github.io/>(remote repository-name)"
}

3. new repository

$ git remote add origin [email protected]:hxxtae/(repository name).git
$ git remote update
$ git remote -v
$ git push --set-upstream origin (branch name)

4. Build전용 Branch 생성

5. Git Bash

$ npm run deploy