Add release health manifest generation to release workflow#98
Merged
Conversation
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.
Motivation
health.jsonis produced for each release so consumers (GitHub assets and Cloudflare R2) can verify release health before serving updates.latest.yml,latest-mac.yml,latest-linux.yml) and surface a failure early if any are missing.Description
Generate release health manifeststep to.github/workflows/build.ymlthat runs before the GitHub release page generation and R2 upload.release_files/latest.yml,release_files/latest-mac.yml, andrelease_files/latest-linux.yml, then writesrelease_files/health.jsoncontainingok,version, per-platformokflags andgenerated_at.RELEASE_VERSION(wired toneeds.prepare.outputs.version) and fails the workflow with a clear error if any manifest is missing or empty.files: release_files/*(GitHub) and the existingaws s3 sync release_files/ ...(Cloudflare R2) will includehealth.jsonautomatically.Testing
ruby -e "require 'yaml'; YAML.load_file('.github/workflows/build.yml'); puts 'YAML OK'"and it returnedYAML OKindicating the workflow YAML is valid.git diff --checkand there were no check failures.release_fileswithlatest.yml,latest-mac.yml, andlatest-linux.yml, running the inline script withRELEASE_VERSION=1.2.3, and confirmedrelease_files/health.jsonwas produced with top-levelok: trueandversion: "1.2.3".Codex Task