From a107db867cbdc5022ab29fa56a2f25b22c0365bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E4=BD=B3=E9=B8=BF?= <2446434034@qq.com> Date: Thu, 22 Aug 2024 03:01:25 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.drone.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index c2bbfdf..e75516b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,3 +1,23 @@ kind: pipeline type: docker -name: build-and-deploy \ No newline at end of file +name: build-and-deploy + +volumes: + - name: node_modules + host: + path: /var/lib/drone/node_modules + - name: vuepress_output + host: + path: /var/lib/drone/vuepress_output +steps: + - name: build-vuepress + image: node:20.16.0 + volumes: + - name: node_modules + path: /drone/src/node_modules + - name: vuepress_output + path: /drone/src/docs/.vuepress/dist + commands: + - cd /drone/src + - npm install + - npm run docs:build \ No newline at end of file