From 32152cb48cf45422f00193831d7571d1a0ed6198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Bo=C5=BEi=C4=8D?= Date: Tue, 7 Nov 2023 13:17:21 +0100 Subject: [PATCH] Guides Gitlab update .gitlab-ci.yml example (#5294) Co-authored-by: Benjamin Bozic Co-authored-by: Paul Valladares <85648028+dreyfus92@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com> Co-authored-by: Chris Swithinbank <357379+delucis@users.noreply.github.com> --- src/content/docs/en/guides/deploy/gitlab.mdx | 42 ++++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/content/docs/en/guides/deploy/gitlab.mdx b/src/content/docs/en/guides/deploy/gitlab.mdx index 4a6ed0193cd78..b9147410bb329 100644 --- a/src/content/docs/en/guides/deploy/gitlab.mdx +++ b/src/content/docs/en/guides/deploy/gitlab.mdx @@ -35,25 +35,25 @@ Check out [the official GitLab Pages Astro example project](https://gitlab.com/p 4. 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 - # The Docker image that will be used to build your app - image: node:lts - - before_script: - - npm ci - - pages: - script: - # Specify the steps involved to build your app here - - npm run build - - artifacts: - paths: - # The folder that contains the built files to be published. - # This must be called "public". - - public - - only: - # Trigger a new build and deploy only when there is a push to the - # branch(es) below - - main + pages: + # The Docker image that will be used to build your app + image: node:lts + + before_script: + - npm ci + + script: + # Specify the steps involved to build your app here + - npm run build + + artifacts: + paths: + # The folder that contains the built files to be published. + # This must be called "public". + - public + + only: + # Trigger a new build and deploy only when there is a push to the + # branch(es) below + - main ```