Skip to content

Commit

Permalink
i18n(zh-cn): update guides/deploy/gitlab.mdx (#5316)
Browse files Browse the repository at this point in the history
* i18n(zh-cn): update `guides/deploy/gitlab.mdx`

* Update src/content/docs/zh-cn/guides/deploy/gitlab.mdx

Co-authored-by: Genteure <[email protected]>

* Update src/content/docs/zh-cn/guides/deploy/gitlab.mdx

Co-authored-by: Genteure <[email protected]>

---------

Co-authored-by: Genteure <[email protected]>
Co-authored-by: Yan Thomas <[email protected]>
  • Loading branch information
3 people authored Nov 9, 2023
1 parent 41a9216 commit 364fc8f
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions src/content/docs/zh-cn/guides/deploy/gitlab.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,25 @@ i18nReady: true

4. 在项目根目录下创建一个名为 `.gitlab-ci.yml` 的文件,文件内容如下。这样,每当你对项目内容作出更改,该文件便会自动构建并部署你的站点。

```yaml
# 用于构建你的应用的 Docker 镜像
image: node:lts

```yaml
pages:
# 用于构建你的应用的 Docker 镜像
image: node:lts
before_script:
- npm ci

pages:
script:
# 在这里指定构建你的应用所需的步骤
- npm run build

artifacts:
paths:
# 包含用于发布的构建文件的文件夹
# 必须命名为"public"
- public

only:
# 仅在推送到以下分支时,
# 触发新的构建和部署
- main
```
script:
# 在这里指定构建你的应用所需的步骤
- npm run build

artifacts:
paths:
# 包含用于发布的构建文件的文件夹
# 必须命名为"public"
- public

only:
# 仅在推送到以下分支时,
# 触发新的构建和部署
- main
```

0 comments on commit 364fc8f

Please sign in to comment.