This is an excellent article for deploying react app to github.
Very well explained.
I believe we need to create `gh-pages` branch manually?
Few Updates:
1. Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
Below are the changes that you can make in yml file:
```
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
```
2. Alternatively, now you can go to settings > pages > and select source as "Github pages", and choose "Jerkyll" theme. This will automatically create the yml file for you and start the deployment process.