From 3adc43d00addd4bf3145e9660fb661c07e647704 Mon Sep 17 00:00:00 2001 From: Jonathan Herman Date: Fri, 6 May 2022 01:59:41 -0500 Subject: [PATCH] docs: fix gitlab pages deploy syntax (#552) Fix GitLab CI build failure due to invalid syntax. --- docs/guide/deploy.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/guide/deploy.md b/docs/guide/deploy.md index 9623e22f..8497ecd6 100644 --- a/docs/guide/deploy.md +++ b/docs/guide/deploy.md @@ -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: ```yaml -image: node:10.22.0 +image: node:16.5.0 pages: + stage: deploy cache: paths: - node_modules/ @@ -152,8 +153,8 @@ pages: artifacts: paths: - public - only: - - main + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH ``` ## Netlify