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