Commit 4e88c0e4 authored by 叶飞's avatar 叶飞

feat: gitlab ci

parent 531832c9
Pipeline #18379 failed with stage
in 6 seconds
...@@ -2,9 +2,6 @@ variables: ...@@ -2,9 +2,6 @@ variables:
DEPLOY_PATH: 'F:/WisdomComponents' DEPLOY_PATH: 'F:/WisdomComponents'
stages: stages:
- init
- bootstrap
- build
- release - release
before_script: before_script:
...@@ -13,33 +10,10 @@ before_script: ...@@ -13,33 +10,10 @@ before_script:
- whoami - whoami
- node -v - node -v
init:
stage: init
script:
- cd /d %DEPLOY_PATH%/src/wisdom-components
- dir
- git pull
- echo 开始安装依赖...
- npm install && echo 安装完成
bootstrap:
stage: bootstrap
script:
- cd /d %DEPLOY_PATH%/src/wisdom-components
- dir
build:
stage: build
script:
- cd /d %DEPLOY_PATH%/src/wisdom-components
- echo 开始打包...
- npm run site
- echo 打包完成
release: release:
stage: release stage: release
script: script:
- cd /d %DEPLOY_PATH%/src/wisdom-components - cd /d %DEPLOY_PATH%/src/wisdom-components
- echo 开始拷贝发布包... - echo 开始拷贝发布包...
- robocopy dist %DEPLOY_PATH%/dist - robocopy dist %DEPLOY_PATH%/dist ; IF ((%LASTEXITCODE% -le 8)) {cmd /c "exit /b 0"}'
- echo 发布完成. - echo 发布完成.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment