This Action will automate the process of building and depolying react app to gh-pages.
Add this action inside your Repository's Actions
name: React app deployment
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy react app to github pages
uses: tanwanimohit/deploy-react-to-ghpages@v1.0.2