From 669d104eb32852f8b03f323700d7ea7ba3077728 Mon Sep 17 00:00:00 2001 From: MrKBear Date: Tue, 22 Feb 2022 23:11:37 +0800 Subject: [PATCH] Add sim drone ci --- .drone.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0300741..7e28fe7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,19 +10,29 @@ steps: pull: if-not-exists image: node volumes: - - name: publish - path: /drone/src/build + - name: publish_lab + path: /drone/src/build_lab + - name: publish_web + path: /drone/src/build_web - name: node_modules path: /drone/src/node_modules commands: - npm config set registry https://registry.npm.taobao.org - npm ci - npm run release-lab + - rm -rf ./build_lab/* + - cp ./build/* ./build_lab + - npm run release-web + - rm -rf ./build_web/* + - cp ./build/* ./build_web volumes: -- name: publish +- name: publish_lab host: path: /http/living-together-lab +- name: publish_web + host: + path: /http/living-together-web - name: node_modules host: path: /tmp/node_modules/living-together