From a00985b0cfa9707d445fb9b42d8ed5c86e1e253b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E4=BD=B3=E9=B8=BF?= <2446434034@qq.com> Date: Fri, 16 Aug 2024 09:04:48 +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 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 027d799..90d5857 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,7 +1,3 @@ -kind: pipeline -type: docker -name: build-vuepress - volumes: - name: node_modules host: @@ -20,4 +16,11 @@ steps: path: /drone/src/docs/.vuepress/dist commands: - cd /drone/src - - npm run docs:build # 修改为你的构建脚本 + - npm install + - npm run docs:build + + - name: deploy + image: alpine:latest + commands: + - apk add --no-cache rsync # Install rsync + - rsync -av --delete /drone/src/docs/.vuepress/dist/ /usr/share/nginx/html/ \ No newline at end of file