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