actions-marketplace-validations/Remote SSH And SCP
自动化部署Web和Nodejs项目
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| command | 终端需要执行的命令(对Web项目而言,将打包后的文件放到服务器对应的目录下,配置好nginx即可访问;但对于Node项目可能并不适用,因为其往往是将完整的项目部署到服务器再运行对应的命令,因每个项目的打包命令和启动命令可能不相同,因此选择开放命令行来支持您自行打包并启动项目进行监听等) | no | — |
| user | 服务器登录用户名 | yes | root |
| host | 服务器的ip | yes | localhost |
| port | 服务器的端口(如不设置,默认使用22端口) | no | 22 |
| key | 密钥,用来登录服务器 | no | — |
| password | 远端服务器登录密码 | no | — |
| scp_key | 用来传输文件 | yes | — |
| source | 源文件目录,即要上传的文件(文件夹) | yes | — |
| target | 目标路径,需要放到服务器的目录 | yes | — |
| exclude | 需要排除的文件,为数组格式 | no | "" |
Outputs
no outputs