Repository navigation
Tag builds attach straight to the release, not through artifact storage - #4
Merged
Merged
Conversation
Actions' artifact storage is the account's, and once it is full no build can
hand its files to the release job ("Artifact storage quota has been hit").
On a tag, a first job now makes the tag's release when the merge hasn't, and
each platform's build attaches its files to it with --clobber (so a re-run
replaces them). A manual run builds and checks only: with no tag there is no
release, and nothing is kept in artifact storage.
Co-authored-by: Pointman <noreply@pointman.ai>
Co-authored-by: Claude <noreply@anthropic.com>
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.
Tag builds stop handing their files through Actions' artifact storage. That storage is shared by the whole account, and once it is full
actions/upload-artifactfails every build with "Artifact storage quota has been hit", so no release can get its builds.What changes:
release(now first, tags only): makes the tag's release when the merge hasn't made it yet, with the same title and notes as before. When it exists already, it is left as it is.gh release upload --clobber, so a re-run replaces them. The macOS runner installsghwith brew if it has none.workflow_dispatch, no tag, so no release) builds and checks only. It no longer keeps the files as artifacts.The same approach releases the compiled extensions, first proven by pointman-ai/pointman-browser#12 (https://github.com/pointman-ai/pointman-browser/actions/runs/43604312550).
Look closely at: the build job's
if: ${{ !failure() && !cancelled() }}. It lets the build run when thereleasejob is skipped (a manual run), and stops it when that job fails.Tested: the workflow YAML parses. The release path only runs on a tag, so its first real run is the next release. No version change.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.