Deployment failure to GitHub Pages

Hi,

I am looking to deploy my ReactJS App to my GitHub Pages website. I can build the entire project on my offline environment, but whenever I try to deploy via Travis CI from GitHub, I end up with this error:

Preparing deploy

Logged in as @XeroHero (Lorenzo Battilocchi)

Deploying application

cd /tmp/d20190525-7599-lnq86v/work

Initialized empty Git repository in /tmp/d20190525-7599-lnq86v/work/.git/

Switched to a new branch 'gh-pages'

cd -

cd /tmp/d20190525-7599-lnq86v/work

rsync: change_dir "/home/travis/build/XeroHero/JS-App/build" failed: No such file or directory (2)

rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]

Could not copy /home/travis/build/XeroHero/JS-App/build.

failed to deploy

Thanks in advance for the help,

Lorenzo Battilocchi

EDIT:

Here is my config files:

.travis.yml

language: node_js
node_js:
  - "node"
cache:
  directories:
    - node_modules
script:
  - npm run clean-force
  - npm run remove-modules
  - npm run install-npm
  - npm run audit-fix

before_deploy:
  - cd $TRAVIS_BUILD_DIR

deploy:
  provider: pages
  edge: true
  skip_cleanup: true
  github_token: $GH_TOKEN
  local_dir: build
  on:
    branch: master

package.json

{
  "name": "my-app",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "react": "^16.4.1",
    "react-dom": "^16.4.1",
    "react-facebook-login": "^4.0.1",
    "react-google-login": "^3.2.1",
    "react-scripts": "1.1.4"
  },
  "homepage": "https://xerohero.github.io/JS-App",

  "scripts": {
    "clean-force": "npm cache clean --force",
    "remove-modules": "rm -rf node_modules",
    "install-npm": "npm install --save-dev gh-pages unirest react-facebook-login react-google-login",
    "start": "react-scripts start HTTPS=true ",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "audit-fix": "npm audit fix",
    "eject": "react-scripts eject"
  },
    "eslintConfig": {
      "extends": "react-app"
    },
    "browserslist": {
      "production": [
        ">0.2%",
        "not dead",
        "not op_mini all"
      ],
      "development": [
        "last 1 chrome version",
        "last 1 firefox version",
        "last 1 safari version"
      ]
    }
  }

I am sorry that we overlooked this. There is another topic which deals with the same issue:

And it’s been addressed. If you continue to see this problem with dpl 1.10.10 and later, please open a new topic.

Thanks.