docs: fix gitlab pages deploy syntax (#552)

Fix GitLab CI build failure due to invalid syntax.
pull/615/head
Jonathan Herman 2 years ago committed by GitHub
parent 216e12950b
commit 3adc43d00a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -141,8 +141,9 @@ deploy:
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: 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 ```yaml
image: node:10.22.0 image: node:16.5.0
pages: pages:
stage: deploy
cache: cache:
paths: paths:
- node_modules/ - node_modules/
@ -152,8 +153,8 @@ pages:
artifacts: artifacts:
paths: paths:
- public - public
only: rules:
- main - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
``` ```
## Netlify ## Netlify

Loading…
Cancel
Save