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