更新 .drone.yml
Some checks reported errors
部署文档 / deploy-gh-pages (push) Waiting to run
continuous-integration/drone Build encountered an error

This commit is contained in:
罗佳鸿 2024-08-16 09:04:48 +00:00
parent 7aaea9de3a
commit a00985b0cf

View File

@ -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/