-
fix(ci): attach release installers with gh, not action-gh-release (#1150)
发布于
2026-09-04 21:04:26 +00:00 Every v0.9.6 rebuild failed after a clean build, on all three platforms:
##[error]Resource not accessible by integration
https://docs.github.com/rest/releases/releases#update-a-releasesoftprops/action-gh-release PATCHes the release — name, body, draft state,
target commitish — before it uploads anything, and it is that PATCH being
refused. It is not the token:GITHUB_TOKEN Permissionsin both the run that
attached the v0.9.6 Windows installer and the runs that failed reads
Contents: write, and the release is not immutable. Asset upload has never
been refused; it is how the Windows and Linux installers got onto the release
in the first place.So upload the assets and touch nothing else. This job has no business rewriting
release metadata anyway: the release is authored before the tag is pushed, and
its notes are written by hand. A missing release is still created rather than
dropping the installers, which is what the action did for a bare tag push.下载附件