I included all the steps for deploying my create react app on github. snippet of my package.json
\"scripts\": { \"start\": \"node scripts/start.js\",
I think the command is like this.
gatsby -d public -b master
Where public is the folder you want to push and master is the branch you want to push to. Please run your build before this