更新 .drone.yml
Some checks are pending
部署文档 / deploy-gh-pages (push) Waiting to run

This commit is contained in:
罗佳鸿 2024-08-22 02:31:37 +00:00
parent 551462ab85
commit aa91ca0dae

View File

@ -1,32 +0,0 @@
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
# - name: deploy
# image: alpine:latest
# commands:
# - apk add --no-cache rsync
# - rsync -av --delete /var/lib/drone/vuepress_output/ /usr/share/nginx/html/