Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build and Test

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

Expand Down
8 changes: 5 additions & 3 deletions GITHUB_ACTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
### 1. Build and Test (`.github/workflows/build.yml`)

**触发条件**:
- 推送到 `main` 分支
- 针对 `main` 分支的 Pull Request

**功能**:
Expand Down Expand Up @@ -49,14 +48,17 @@

### 日常开发

每次推送到 `main` 分支或创建 Pull Request 时,会自动触发构建和测试:
每次创建或更新针对 `main` 分支的 Pull Request 时,会自动触发构建和测试:

```bash
git switch -c feature/my-change
git add .
git commit -m "feat: add new feature"
git push origin main
git push -u origin feature/my-change
```

然后在 GitHub 上创建指向 `main` 的 Pull Request。

查看构建状态:
- 访问 https://github.com/Hureru/SSHWarden/actions
- 或在 README 中查看徽章状态
Expand Down
Loading