Skip to content

feat: release pipeline, install scripts and self-update - #2

Merged
kevin1024 merged 2 commits into
mainfrom
feat/release-pipeline
Nov 11, 2026
Merged

kevin1024 merged 2 commits into
mainfrom
feat/release-pipeline

Conversation

@kevin1024

Copy link
Copy Markdown
Member

What this adds

Everything needed to publish builds, carried over from geekcli and adapted.

  • Release workflow with release-please. Merging the release PR tags a version, builds archives for macOS (Apple silicon, Intel), Linux (x86_64 and arm64, static musl) and Windows (x86_64), each with a .sha256, attests build provenance, uploads them to the GitHub release, and runs both install scripts against it.
  • install.sh and install.ps1. They verify the sha256 and, when gh is installed, the build-provenance attestation. FIREBIRD_CLI_VERSION and FIREBIRD_CLI_INSTALL_DIR pin a version and a destination.
  • firebird-cli update [--check] [--tag vX.Y.Z]. Verifies the archive's attestation against Sigstore, pinned to this repo's release.yml on main. 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.
  • CI and quality. CI gains Windows, an MSRV (1.88) job and static-musl runs on Debian and Alpine. quality.yml runs cargo deny and zizmor; pr.yml requires conventional-commit PR titles. Dependabot keeps actions and crates current.
  • Repo files. SECURITY.md, CONTRIBUTING.md, CHANGELOG.md, deny.toml, and about.toml/about.hbs for the third-party licence file in each archive.

Tested

  • cargo build, cargo test (134 tests), cargo clippy --all-targets -- -D warnings and cargo fmt --check pass.
  • cargo deny check, cargo about generate, cargo +1.88 check and a release build pass locally.
  • install.sh was run end to end offline against a locally built archive: latest, a pinned version, provenance verified, provenance refused, and a wrong sha256.
  • update is 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.
  • Provenance verification is tested with geekcli's real attestation as a fixture: it verifies against geekcli's signer and is refused against this repo's.

Not tested

  • The release workflow has never run: release-please, the build matrix, attestation, upload and the install check.
  • The workflows were not linted with actionlint or zizmor locally, and install.ps1 was not parsed.
  • The test suite has never run on Windows; this PR adds it to CI, so that job may fail here.
  • There is no firebird-cli attestation yet, so the positive verification path for this repo's own signer is untested until the first release.

Before the first release

  • Repo setting: Actions → General → "Allow GitHub Actions to create and approve pull requests" must be on, or release-please cannot open its PR.
  • Merge style: squash, with the PR title as the commit message; the changelog and version come from those titles.
  • Security → Advisories: enable private vulnerability reporting, which SECURITY.md links to.
  • After this merges, release-please should open chore(main): release 0.1.0. Merging that cuts the release. If it proposes another version, a commit on main with Release-As: 0.1.0 in its body corrects it.

The README says to build from source if the Releases page lists no release yet.

🤖 Generated with Claude Code

kevin1024 and others added 2 commits November 11, 2026 17:11
- 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>
@kevin1024
kevin1024 merged commit 29ba52a into main Nov 11, 2026
10 checks passed
@kevin1024
kevin1024 deleted the feat/release-pipeline branch November 11, 2026 22:21
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.

1 participant