# Deploying Astro

> Source: https://agilitycms.com/docs/astro/deploying-astro

This guide will cover the steps on how you can deploy your site built with Astro and Agility to Netlify.

> You will need to have a GitHub and a Netlify account to get your project deployed.

## Push to Github

The first thing you'll need to do is to push your code up to your GitHub account.  Create a new Repo in Github and push you code up to it.

## Create a New Netlify Site

- Head over to the [Netlify](https://www.netlify.com/), you can login using your Github account, and create a new site.

- Use your Github repo as the source for the site, and plug in your `env` vars.

- Netlify will give you a URL once it's deployed.

## Bonus: Setup Preview In Agility

- One of the best things you can do for your Editors is to get preview working properly so they can see what their changes will look like before publishing.
- Head over to the [Sitemap Settings](https://app.agilitycms.com/settings/sitemaps) section in Agility
- Click **Setup Deployment**, choose **Manual Deployment.**
- Name it Netlify (or whatever you want), paste in the site URL you get from Netlify.
- Toggle **Preview Deployment** and **Production Deployment** to on.
- Click Save
- Head over to the Layouts section and click **Preview** | **Preview in New Tab**.  
- The site should load in Preview mode.****

---

Index of every docs page: https://agilitycms.com/docs/llms.txt
