diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a0b7416..2fc953f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,23 @@ -# The Docker image that will be used to build your app -image: node:lts -# Functions that should be executed before the build script is run -before_script: - - npm install +stages: + - build + - deploy + + +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 \ No newline at end of file