Skip to content

release: publish verified preview packages from exact tags - #116

Merged
Xuanwo merged 8 commits into
mainfrom
xuanwo/c-release-publication-main
Nov 22, 2026
Merged

Xuanwo merged 8 commits into
mainfrom
xuanwo/c-release-publication-main

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Closes #97

Adds controlled GitHub Release publication to the existing five-target package workflow. Tag pushes and dispatches without the Boolean opt-in remain read-only builds. A dispatch on the exact preview tag with publish_release=true waits for all package jobs, re-verifies every archive, checksum and manifest against the tag and the locked LanceDB/Lance revisions, then creates a draft, uploads only missing digest-verified assets, and publishes after readback.

Safety: only the publish job has contents: write. The tag ref object, peeled commit and tag type are re-read with git ls-remote before draft writes, immediately before publication and after publication; moved or missing tags fail. Stable tags are rejected, retries reuse drafts, existing asset digests are verified instead of replaced, and published releases are never modified. GitHub exposes ref reads and release writes as separate operations, so the remaining check/write race needs server-side tag protection and release immutability for an atomic guarantee; this PR does not change repository protections.

Package and publication checksum files are written as canonical LF bytes, including on Windows. Release preparation canonicalizes verified sibling checksums and the combined SHA256SUMS, and a 502 starter asset fails closed with the release id, asset name and a documented way to remove only that empty placeholder before retrying.

LICENSE and include/lancedb.h are marked text eol=lf so packaged source bytes are identical on Linux, macOS and Windows runners.

Validation on head 19fcd20 (after merging repaired main with #117 and #87; clean tree ae0f224c): test_release.py 30/30, test_package.py 23/23, actionlint 1.7.12 clean, shallow exact-tag fixture passed, workflow shape asserted tag/manual-only with a single gated write job. GNU sha256sum -c passed for both Windows target archives, their extracted internal sums, sibling sums and the combined SHA256SUMS. No tag, dispatch, release, protection change or heavy build was performed. The hosted five-platform package matrix and real consumer checks still need to run on an actual tag dispatch before the first release.

@Xuanwo
Xuanwo merged commit e8086b4 into main Nov 22, 2026
10 checks passed
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.

ci: add tag-driven GitHub Release workflow for prebuilt packages

1 participant