AFAIAK GitHub pages require that the built files are stored in the repo.
Netlify checks out the repo, runs the build command and then takes files from your dist directory. Iād love for GitHub pages to behave like this. A much simpler setup.
Well, you can technically push the src changes to `master` branch, have a github action build + update a `deploy` branch and then have gh pages read from there.