pad_stick_doc/.drone.yml

30 lines
595 B
YAML
Raw Permalink 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
2022-05-16 09:24:01 +08:00
- yarn
- yarn docs:build
2022-05-11 13:32:46 +08:00
- name: 上传FTP
image: cschlosser/drone-ftps
environment:
FTP_USERNAME:
2022-05-11 13:37:15 +08:00
from_secret: username
2022-05-11 13:32:46 +08:00
FTP_PASSWORD:
2022-05-11 13:37:15 +08:00
from_secret: password
2022-05-11 13:32:46 +08:00
PLUGIN_HOSTNAME: 124.223.209.101:21
2022-05-11 13:41:22 +08:00
PLUGIN_DEST_DIR: /
PLUGIN_SRC_DIR: /docs-dist
2022-05-11 13:32:46 +08:00
PLUGIN_SECURE: false
PLUGIN_VERIFY: false
2022-05-16 09:24:01 +08:00
PLUGIN_EXCLUDE: ^\.git/$