seepine/action-miniprogram-ci
将 miniprogram-ci 封装为 action,通过 Actions 实现小程序自动化上传/预览
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| mode | ci模式,默认upload,可选preview | no | upload |
| platform | 平台,默认wechat,可选douyin | no | |
| type | 小程序类型,默认miniProgram,可选miniProgram/miniProgramPlugin/miniGame/miniGamePlugin | no | miniProgram |
| project-path | 项目的路径,即 project.config.json 所在的目录,默认根路径,即./, 若uniapp项目,一般传入./dist/build/mp-weixin | no | ./ |
| private-key | 私钥,在获取项目属性和上传时用于鉴权使用,在微信公众平台上登录后下载 | no | — |
| private-key-path | 私钥完整路径,private-key为空时使用路径值,例如./private.key | no | — |
| ignores | 指定需要排除的规则,默认忽略node_modules路径 | no | node_modules/**/* |
| version | 自定义版本号,空则根据时间戳自动生成YYYY.MMDD.HHmmss | no | — |
| desc | 自定义备注 | no | fix some bug. |
| robot | 指定使用哪一个 ci 机器人,可选值:1 ~ 30 | no | 1 |
| threads | 指定本地编译过程中开启的线程数,默认获取cpu线程数 | no | — |
| qrcode-format | ��回二维码文件的格式 "image" 或 "base64",默认值 "terminal" 会输出到日志中,可设置output参数将其输出到output文件中 | no | terminal |
| qrcode-output-dest | 若qrcode-format设置非terminal,则需要设置此路径值,默认./preview-qrcode.png | no | ./preview-qrcode.png |
| page-path | 预览页面路径 | no | — |
| search-query | 预览页面路径启动参数 | no | — |
| scene | 默认值 1011,具体含义见场景值列表 | no | — |
| output | 设置输出文件,可使用{appid},{version},{qrcode}作为占位符 | no | — |
| output-path | 设置输出文件路径,默认为./output.txt | no | ./output.txt |
| ci-version | ci版本 | no | — |
Outputs
no outputs