From 1460004b9b8b10f2baf7bdc1d7a3fef711d584a5 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 02:38:24 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20.drone.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..1f84fcd --- /dev/null +++ b/.drone.yml @@ -0,0 +1,24 @@ +kind: pipeline +type: docker +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