Host Astro on GitHub Pages

You can host Astro sites on GitHub pages. Use the Astro Deploy Action to run your own build.

You can copy the Astro Accelerator GitHub Action configuration if you want to host your site on GitHub Pages. There are no variables to update.

The Astro Deploy Action is really easy to set up and publishes the output directly to GitHub Pages. All you need to do is set up GitHub Pages to serve content from “Actions”.

The settings for GitHub Pages are:

  • Source: Deploy from Actions
  • Branch: gh-pages /(root)

This site is hosted on GitHub Pages.