pad_stick_doc/.drone.yml
taoya7 a19ff9aeaf
Some checks failed
continuous-integration/drone Build is failing
init
2022-05-11 13:32:46 +08:00

28 lines
579 B
YAML

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