mirror of
https://github.com/Lydanne/spaceflow.git
synced 2026-03-11 19:52:45 +08:00
chore: 初始化仓库
This commit is contained in:
34
docs/guide/commands/ci-scripts.md
Normal file
34
docs/guide/commands/ci-scripts.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# ci-scripts — 脚本执行
|
||||
|
||||
`ci-scripts` 命令用于在 CI 环境中执行仓库中的自定义脚本。
|
||||
|
||||
## 安装
|
||||
|
||||
```bash
|
||||
spaceflow install @spaceflow/ci-scripts
|
||||
```
|
||||
|
||||
## 基本用法
|
||||
|
||||
```bash
|
||||
# 执行指定脚本
|
||||
spaceflow ci-scripts --script ./scripts/deploy.sh
|
||||
|
||||
# CI 模式
|
||||
spaceflow ci-scripts --script ./scripts/test.sh --ci
|
||||
```
|
||||
|
||||
## 使用场景
|
||||
|
||||
- 在 PR 合并后执行部署脚本
|
||||
- 在 CI 中运行自定义检查脚本
|
||||
- 批量执行仓库中的自动化任务
|
||||
|
||||
## 命令行选项
|
||||
|
||||
| 选项 | 说明 |
|
||||
|------|------|
|
||||
| `--script <path>` | 脚本文件路径 |
|
||||
| `--ci` | CI 模式 |
|
||||
| `--dry-run` | 试运行 |
|
||||
| `--verbose` | 详细日志 |
|
||||
Reference in New Issue
Block a user