更新.gitlab-ci.yml文件
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user