Skip to content

Deploy your Astro Site to GitLab Pages

How to deploy your Astro site to the web using GitLab Pages.

You can use GitLab Pages to host an Astro site for your GitLab projects, groups, or user account.

You can deploy an Astro site to GitLab Pages by using GitLab CI/CD to automatically build and deploy your site. To do this, your source code must be hosted on GitLab and you need to make the following changes to your Astro project:

Your site should now be published! When you push changes to your Astro project’s repository, the GitLab CI/CD pipeline will automatically deploy them for you.