chore(ci): add release-package and release-publish workflows#145
Merged
kongche-jbw merged 3 commits intomainfrom Apr 10, 2026
Merged
chore(ci): add release-package and release-publish workflows#145kongche-jbw merged 3 commits intomainfrom
kongche-jbw merged 3 commits intomainfrom
Conversation
…chive Signed-off-by: 1570005763 <daniel.duan@linux.alibaba.com>
kongche-jbw
reviewed
Apr 10, 2026
kongche-jbw
reviewed
Apr 10, 2026
kongche-jbw
previously approved these changes
Apr 10, 2026
be3e338 to
b1fbebc
Compare
Collaborator
Author
|
@kongche-jbw Made two main changes based on code review feedback: updated comments to match actual retention days, and changed signing status to be passed via environment variables rather than inferred from component names. |
kongche-jbw
approved these changes
Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Split the monolithic release workflow into two independent workflows:
release-package.yamlhandles tag-triggered packaging and preview builds, whilerelease-publish.yamlhandles GitHub Release creation from pre-built official artifacts. This separation decouples the build and publish steps, allowing release managers to verify the packaged artifact (via dry-run) before making it publicly available. The two-stage design also enforces a clear artifact provenance contract: only official artifacts produced byrelease-package.yamlon tag push are accepted byrelease-publish.yaml.flowchart TD subgraph PKG["release-package.yaml"] T1["push tag\ncosh/v* | sec-core/v* | sight/v* | skill/v*"] T2["workflow_dispatch\ncomponent + version"] T1 --> P1["parse-tag\n解析 tag → component + version"] P1 --> P2["package-official\n调用 package-archive action"] P2 --> A1["官方制品\n{component}-{version}.tar.gz\n保留 28 天"] T2 --> P3["package-preview\n调用 package-archive action"] P3 --> A2["预览制品\n{component}-{version}.preview.tar.gz\n保留 14 天\n仅供人工验证"] end subgraph PUB["release-publish.yaml"] T3["workflow_dispatch\ncomponent + version + dry_run"] T3 --> Q1["Find package run-id"] Q1 --> Q2{artifact 找到?} Q2 -- No --> ERR["exit 1\n未找到 / 已过期 / 输入不匹配"] Q2 -- Yes --> Q3["Download official artifact"] Q3 --> DR{dry_run?} DR -- true --> D1["Step Summary 预览\ntar -t 列出内容\n不创建 Release"] DR -- false --> D2["gh release create\n创建 GitHub Release\n上传 tar.gz"] end A1 -.->|"跨 workflow 下载\n28天内有效"| Q1Related Issue
closes #118
Type of Change
Scope
cosh(copilot-shell)sec-core(agent-sec-core)skill(os-skills)sight(agentsight)Checklist
cosh: Lint passes, type check passes, and tests passsec-core(Rust):cargo clippy -- -D warningsandcargo fmt --checkpasssec-core(Python): Ruff format and pytest passskill: Skill directory structure is valid and shell scripts pass syntax checksight:cargo clippy -- -D warningsandcargo fmt --checkpasspackage-lock.json/Cargo.lock)Testing
Additional Notes
release-package.yaml key behaviors:
cosh/v*,sec-core/v*,sight/v*,skill/v*{component}-{version}.tar.gz, retained 28 daysworkflow_dispatch):{component}-{version}.preview.tar.gz, retained 14 daysrelease-publish.yaml key behaviors:
workflow_dispatch); requirescomponent,version, anddry_runinputsrelease-package.yamlrundry_run=true: prints release info and archive contents only, no Release createddry_run=false: creates GitHub Release and uploads the artifact as a release asset