pad_stick_doc/.drone.yml
taoya7 5923df4a4b
All checks were successful
continuous-integration/drone Build is passing
init
2022-05-11 13:41:22 +08:00

29 lines
598 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: username
FTP_PASSWORD:
from_secret: password
PLUGIN_HOSTNAME: 124.223.209.101:21
PLUGIN_DEST_DIR: /
PLUGIN_SRC_DIR: /docs-dist
PLUGIN_SECURE: false
PLUGIN_VERIFY: false
PLUGIN_EXCLUDE: ^\.git/$