Netlify is a static hosting environment that is free to start, and handles Gatsby sites really well. To publish your site on Netlify, first create a new account at netlify.com.
Next, add your theme project files to a Github repository.
Login to Netlify and you will see a
New site from git button at the top right corner of the screen. Click on it and authorize Netlify to use your account. Choose your website repository and it will take you to deploy settings with the below options.
Click on the Deploy site button and Netlify will start the build and deploy process you have specified. You can go to the Deploys tab and see the process unfold in the Deploy log. After a few moments, it will give you the live site URL eg. random-name.netlify.com.
You’ll want to install the Gatsby Toolkit plugin and configure a build hook. This will rebuild your site on Netlify any time a new post or page is updated or published.