更新 .drone.yml
This commit is contained in:
parent
7aaea9de3a
commit
a00985b0cf
13
.drone.yml
13
.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/
|
||||
Loading…
Reference in New Issue