mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
#5082 added the CLI installer, but users still needed a repository checkout to run the script. This PR publishes it at `https://downloads.lancedb.com/cli/install.sh` whenever `scripts/install.sh` changes on `main`. The installer continues to fetch binaries and checksums from GitHub Releases. This was accomplished with the following changes: - Serialize publishes and check out current `main` so retrying an old run picks up the current script. - Use GitHub OIDC to upload the installer to S3, invalidate its CloudFront path, and compare the public download byte for byte with the checked-out script. - Allow a manual run on `main` for the first publish and retries. The first run requires the `CLI_INSTALLER_AWS_ROLE_ARN` and `CLI_INSTALLER_DISTRIBUTION_ID` repository variables. ### Testing The installer failure-case tests passed. With simulated AWS and HTTP responses, the publish step accepted matching bytes, rejected a stale download, and stopped before upload when the distribution ID was missing.