This project was bootstrapped with Create React App.
$ npm install gh-pages
A homepage deve seguir o padrão: https://{nome_usuário}.github.io/{nome_repositório}
{
"name": "my-app",
"version": "0.1.0",
+ "homepage": "https://gitname.github.io/react-gh-pages",
"private": true,
"scripts": {
+ "predeploy": "npm run build",
+ "deploy": "gh-pages -d build",
"start": "react-scripts start",
"build": "react-scripts build",
$ npm run deploy
- Ir até a opção GitHub Pages na página settings
- Na barra lateral, em "Code and automation" clique em "Pages"
- Configure o "Build and deployment":
- Source: Deploy from a branch
- Branch:
- Branch:
gh-pages
- Folder:
/ (root)
- Branch:
- Clique no botão "Save"