Skip to content

fix: attach the release zips with gh release upload - #218

Merged
petercorke merged 1 commit into
mainfrom
fix/release-assets-upload
Nov 22, 2026
Merged

petercorke merged 1 commit into
mainfrom
fix/release-assets-upload

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Summary

PR 194 (release zips) added assets.yml, which attaches mvtb_examples.zip and mvtb_notebooks.zip to a release. Its first real run, gh workflow run assets.yml -f tag=v2.4.1, built the zips but failed at the upload: softprops/action-gh-release@v3 found the release and then stopped with Resource not accessible by integration when it tried to update it, even though the job has contents: write.

The upload step now uses gh release upload "$TAG" ... --clobber, which only adds files to the release and leaves the release itself alone. The rest of the workflow is unchanged.

Testing

I ran the workflow from this branch for v2.4.1 (gh workflow run assets.yml --ref fix/release-assets-upload -f tag=v2.4.1): every step passed, and v2.4.1 now has mvtb_examples.zip (9.8 kB) and mvtb_notebooks.zip (98.9 kB). The zips were built from the v2.4.1 tag, so they hold the examples and notebooks as of that release. Not run: the path where release-please.yml dispatches this workflow for a new release, which will only be exercised by the next release. I did not find out why the action's update was refused.

bdsim's assets.yml uses the same softprops/action-gh-release step for versioned releases, so it likely has the same problem.

This change was written with AI assistance (Claude Code) and the diff has been read by the maintainer.

🤖 Generated with Claude Code

Running assets.yml for the existing release v2.4.1 failed in
softprops/action-gh-release with "Resource not accessible by integration"
while it updated the release. gh release upload only adds the files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit e1a89fb into main Nov 22, 2026
32 checks passed
@petercorke
petercorke deleted the fix/release-assets-upload branch November 22, 2026 05:08
@github-actions github-actions Bot mentioned this pull request Nov 22, 2026
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