ci: stop running workflow on pushes to main
Only trigger builds on v* tags and pull requests targeting main. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2,7 +2,6 @@ name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
tags: ["v*"]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
@@ -104,7 +104,7 @@ agent-notify version
|
||||
|
||||
## CI / Release
|
||||
|
||||
推送 `main` 分支或 `v*` tag 时,GitHub Actions 会构建并上传以下产物:
|
||||
推送 `v*` tag 时,GitHub Actions 会构建并上传以下产物(PR 会跑测试和构建,但不发 Release):
|
||||
|
||||
- `agent-notify-<version>_linux_amd64.tar.gz`
|
||||
- `agent-notify-<version>_linux_arm64.tar.gz`
|
||||
@@ -112,6 +112,5 @@ agent-notify version
|
||||
- `agent-notify-<version>_darwin_arm64.tar.gz`
|
||||
|
||||
- **tag 发布**(如 `v0.1.0`):版本号为 tag 名,并自动创建 GitHub Release
|
||||
- **main 分支**:版本号为 `dev-<git-sha>`
|
||||
|
||||
每个压缩包内含二进制和 `.sha256` 校验文件。
|
||||
|
||||
Reference in New Issue
Block a user