Deploy NextJS app to GitHub Pages using GitHub Actions

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • github-pages-deploy-action

    Automatically deploy your project to GitHub Pages using GitHub Actions. This action can be configured to push your production-ready code into any branch you'd like.

    github-pages-deploy-action is used to push a static exported site to gh-pages branch.

  • Check out a repository with an example application of NextJS app built with described GitHub Action that is hosted right here.

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • Gatsby

    Build blazing fast, modern apps and websites with React

    Now we can serve a static website on free hosting with automated deployment on push to main. Https is provided by GitHub Pages. The only cost is custom domain (if we want to). Other static site generators like Gatsby, Jekyll, or Hugo (on almost every website you can read that their framework is the fastest one) can be used with GitHub Pages and Actions almost the same way as NextJS.

  • Jekyll

    :globe_with_meridians: Jekyll is a blog-aware static site generator in Ruby

    Now we can serve a static website on free hosting with automated deployment on push to main. Https is provided by GitHub Pages. The only cost is custom domain (if we want to). Other static site generators like Gatsby, Jekyll, or Hugo (on almost every website you can read that their framework is the fastest one) can be used with GitHub Pages and Actions almost the same way as NextJS.

  • Hugo

    The world’s fastest framework for building websites.

    Now we can serve a static website on free hosting with automated deployment on push to main. Https is provided by GitHub Pages. The only cost is custom domain (if we want to). Other static site generators like Gatsby, Jekyll, or Hugo (on almost every website you can read that their framework is the fastest one) can be used with GitHub Pages and Actions almost the same way as NextJS.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts