Repository navigation
feat: release pipeline, install scripts and self-update - #2
Merged
Merged
Conversation
- release.yml with release-please: merging the release PR tags a version, builds archives for macOS, Linux (static musl) and Windows with sha256 files, attests build provenance, uploads them, and runs both install scripts against the release. - install.sh and install.ps1, checking the sha256 and, when gh is available, the attestation. - firebird-cli update [--check] [--tag], which verifies the archive's build provenance against Sigstore, pinned to this repo's release workflow, and is never given the site key. - CI gains Windows, MSRV and static-musl jobs; quality.yml runs cargo deny and zizmor; pr.yml requires conventional PR titles. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Clippy 1.99 rejects assert!(x.is_empty()) because a failure hides the value. Co-Authored-By: Claude Fable 5.2 <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.
What this adds
Everything needed to publish builds, carried over from geekcli and adapted.
.sha256, attests build provenance, uploads them to the GitHub release, and runs both install scripts against it.install.shandinstall.ps1. They verify the sha256 and, whenghis installed, the build-provenance attestation.FIREBIRD_CLI_VERSIONandFIREBIRD_CLI_INSTALL_DIRpin a version and a destination.firebird-cli update [--check] [--tag vX.Y.Z]. Verifies the archive's attestation against Sigstore, pinned to this repo'srelease.ymlonmain. It runs before any config is read, so it is never given the site key or token. A newer release is mentioned once a day, on a terminal only.quality.ymlrunscargo denyand zizmor;pr.ymlrequires conventional-commit PR titles. Dependabot keeps actions and crates current.SECURITY.md,CONTRIBUTING.md,CHANGELOG.md,deny.toml, andabout.toml/about.hbsfor the third-party licence file in each archive.Tested
cargo build,cargo test(134 tests),cargo clippy --all-targets -- -D warningsandcargo fmt --checkpass.cargo deny check,cargo about generate,cargo +1.88 checkand a release build pass locally.install.shwas run end to end offline against a locally built archive: latest, a pinned version, provenance verified, provenance refused, and a wrong sha256.updateis tested against a mock release API, including refusing a missing or foreign attestation and a checksum mismatch, and that no key reaches the release host.Not tested
install.ps1was not parsed.Before the first release
SECURITY.mdlinks to.chore(main): release 0.1.0. Merging that cuts the release. If it proposes another version, a commit onmainwithRelease-As: 0.1.0in its body corrects it.The README says to build from source if the Releases page lists no release yet.
🤖 Generated with Claude Code