更新.gitlab-ci.yml文件

This commit is contained in:
2024-12-26 10:09:41 +08:00
parent 7da61bdd81
commit 3da1711c51

View File

@@ -1,5 +1,23 @@
# The Docker image that will be used to build your app stages:
image: node:lts - build
# Functions that should be executed before the build script is run - deploy
before_script:
- npm install
build:
stage: build
script:
- echo "我是 build"
pages: # job 的名称必须要是 pages
stage: deploy
retry:
max: 2
script: # 生成站点
- mkdir public
- cp index.html public/index.html
artifacts: # 制品
paths:
- public