From 41aed672abde8ddfd2f448a2928aa0c46663f495 Mon Sep 17 00:00:00 2001 From: Adam Recvlohe <9747933+arecvlohe@users.noreply.github.com> Date: Thu, 30 Sep 2021 14:03:14 -0500 Subject: [PATCH] Update deploy docs for gitlab pages (#1465) --- docs/src/pages/guides/deploy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/pages/guides/deploy.md b/docs/src/pages/guides/deploy.md index 28b48fd6c..50671f6f0 100644 --- a/docs/src/pages/guides/deploy.md +++ b/docs/src/pages/guides/deploy.md @@ -161,7 +161,7 @@ jobs: ## GitLab Pages 1. Set the correct `buildOptions.site` in `astro.config.mjs`. -2. Set `build.outDir` in `astro.config.mjs` to `public`. +2. Set `build` in `astro.config.mjs` to `public` and `public` in `astro.config.mjs` to a newly named folder that is holding everything currently in `public`. The reasoning is because `public` is a second source folder in astro, so if you would like to output to `public` you'll need to pull public assets from a different folder. 3. Create a file called `.gitlab-ci.yml` in the root of your project with the content below. This will build and deploy your site whenever you make changes to your content: ```yaml