Repository navigation
fix: attach the release zips with gh release upload - #218
Merged
Merged
Conversation
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>
Up to standards ✅🟢 Issues
|
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.
Summary
PR 194 (release zips) added
assets.yml, which attachesmvtb_examples.zipandmvtb_notebooks.zipto 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@v3found the release and then stopped withResource not accessible by integrationwhen it tried to update it, even though the job hascontents: 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 hasmvtb_examples.zip(9.8 kB) andmvtb_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 whererelease-please.ymldispatches 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.ymluses the samesoftprops/action-gh-releasestep 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