Auto Deployment of a React App on gh-pages with Travis-CI

Rishi Raj
Rishi Raj
May 5, 2020 · 4 min read

Here’s an example of a React App which uses Travis CI with a custom build script to deploy itself on gh-pages after every pull request is merged into the project. The build system auto updates the latest changes hosted on whichever URL you have your project hosted on. In this blog, we will see how to automatically deploy the repository on gh pages.

To proceed with auto deploy on gh-pages branch,

  1. We first need to setup Travis for the project.
  2. Register on https://travis-ci.org/ and…