Fork of https://github.com/rstacruz/git-update-ghpages modified to work with circleci out of the box with next.js
- Follow the instructions for how to add a deploy key with write access: https://circleci.com/docs/2.0/gh-bb-integration/#adding-readwrite-deployment-keys-to-github-or-bitbucket
- Add this script as a step in your job:
- run: npx https://gist.github.com/stipsan/bbf4adcdafd9eabfa6a9a42397a1c1b9