Repository navigation
ci: publish releases and pages, add weekly health check - #4
Merged
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.
scripts/build.py: validates the registry, then writes a flat directory:index.json(checked againstschema/index.schema.json), each icon at 512 and 128 and each screenshot as<slug>-<name>-<sha12>.png, andSHA256SUMSoverindex.jsonand every PNG. No tarball. Images are re-encoded: RGB profiles converted to sRGB, metadata dropped, alpha removed when opaque.generatedAtis the commit time, so two builds are byte-identical.publish.yml,workflow_dispatchonly, main only:build(contents: read) builds and comparescontentSha256with the latest release. Same data means no release.release(contents: write) runsgh release createwith every file as its own asset. gh uploads to a draft and then publishes, so with immutable releases on the tag and assets lock and GitHub attests the release. Noattest-build-provenance.pages(pages: write, id-token: write, environmentgithub-pages) deploysv1/(the same files as the latest release) andschema/v1/, so each schema$idresolves.v1.<YYYYMMDD>.<run number>(UTC), the patternindex.schema.jsonalready allows. Notes:Registry data built from <sha>.scripts/health.py: for each active entry, checks the source by numeric repo ID (gone, moved, archived, private, path, license, no push in 18 months), the install target and every link (reported only after failing twice), grace ending or ended,lastVerifiedAtolder than a year, and homepage domain age through RDAP. Also checks built-in client drift againstIntegrationClient.swiftand runs the private-file scan. Reuses theregistry.pyandvalidate.pychecks. Never writes to an entry.health.yml: Mondays 06:23 UTC and on dispatch.check(contents: read) runs the script.issue(issues: write, no checkout) then updates the one openhealthissue opened by github-actions, creates it if missing, or closes it when nothing is found. Findings go in code spans, so a third-party path cannot mention anyone.test_build.pyandtest_health.py.validate.ymlnow runs every test file.Owner steps:
integrationstotableproapp.github.io, DNS only.gh api -X PUT repos/TableProApp/integrations/pages -F https_enforced=true.gh workflow run publish.yml --repo TableProApp/integrations --ref main.gh release verify <tag> --repo TableProApp/integrationsandgh release verify-asset <tag> <file> --repo TableProApp/integrationsfor each asset, then open https://integrations.tablepro.app/v1/index.json.pushtrigger on main (data paths) or ascheduletopublish.ymlif you want automatic releases.gh workflow run health.yml --repo TableProApp/integrations. With no entries yet, it reports the four Connect a Client cases as missing.