Skip to content

Commit

Permalink
Guides Gitlab update .gitlab-ci.yml example (#5294)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Bozic <[email protected]>
Co-authored-by: Paul Valladares <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]>
Co-authored-by: Chris Swithinbank <[email protected]>
  • Loading branch information
5 people authored Nov 7, 2023
1 parent 3406383 commit 32152cb
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/content/docs/en/guides/deploy/gitlab.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 32152cb

Please sign in to comment.