This gist was partially inspired by this blog about Next.js Vercel CI with GitHub actions.
An easy way to deploy and host websites for free is to use GitHub pages. If you've deployed a Next.js project to GitHub pages, you may have used a GitHub action similar to this in the past to automatically redeploy the site when a new commit is pushed:
# gh-pages-merge.yml
name: Deploy to gh-pages on merge
on:
push: