pad_stick_doc/.drone.yml

28 lines
579 B
YAML
Raw Normal View History

2022-05-11 10:53:11 +08:00
kind: pipeline
type: docker
name: 构建任务
steps:
- name: 编译文件
image: node:16.13.1
pull: if-not-exists # always never
commands:
- node -v
- npm -v
- npm install -g nrm
- nrm ls
- nrm use taobao
- npm i
- npm run docs:build
2022-05-11 13:32:46 +08:00
- name: 上传FTP
image: cschlosser/drone-ftps
environment:
FTP_USERNAME:
from_secret: doc
FTP_PASSWORD:
from_secret: YDdErXmjTsjSAnmC
PLUGIN_HOSTNAME: 124.223.209.101:21
PLUGIN_DEST_DIR: /docs-dist
PLUGIN_SECURE: false
PLUGIN_VERIFY: false
PLUGIN_EXCLUDE: ^\.git/$