Skip to content

feat(release): PyPI 发布成功后自动创建 GitHub Release 条目 - #9

Merged
im47cn merged 1 commit into
mainfrom
chore/release-auto-entry
Aug 29, 2026
Merged

im47cn merged 1 commit into
mainfrom
chore/release-auto-entry

Conversation

@im47cn

@im47cn im47cn commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

背景

wop-python-sdk 打 tag 发布只上 PyPI,GitHub Releases 区一直为空(dotnet-sdk 有手工 Release,python-sdk 缺失);Deployments 区的条目是 pypa action 的 environment 台账,不面向人类版本入口。

变更(仅 release.yml)

  1. job permissions: contents: read → write——创建 Release 对象所需的最小提权,仅此 job
  2. Publish 步骤后新增 Create GitHub Release:
    • 仅在 PyPI 发布成功后执行(失败即跳过)——Release 条目 = 已发布信号
    • 幂等(gh release view ||),workflow 重跑不重复创建
    • --generate-notes 基线,发布后可随时人工编辑(对齐 dotnet 手写说明的演进路径)

已完成回填

  • v0.1.0、v0.1.1(含手写行为变更说明)已创建,v0.1.1 标记 Latest

验证

  • actionlint PASS;YAML 结构确认 permissions 与 7 个步骤

…nts:write

回填 v0.1.0/v0.1.1 Release 已手工完成;此后 tag 发布自动落条目(幂等,
--generate-notes 基线可事后人工编辑)。
@im47cn
im47cn merged commit c0f1047 into main Aug 29, 2026
12 checks passed
@im47cn
im47cn deleted the chore/release-auto-entry branch August 29, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant