Skip to content

build: add release workflow that builds, attests and drafts releases on version tags - #1

Merged
SwifAI merged 1 commit into
mainfrom
build/release-workflow
Oct 22, 2026
Merged

SwifAI merged 1 commit into
mainfrom
build/release-workflow

Conversation

@SwifAI

@SwifAI SwifAI commented Oct 22, 2026

Copy link
Copy Markdown
Owner

What this changes

Adds .github/workflows/release.yml. Pushing a vX.Y.Z tag now:

  1. checks the tag matches VERSION in build.sh (and fails otherwise),
  2. runs swift test and ./build.sh on macos-26,
  3. zips SysBar.app with ditto and writes SysBar-X.Y.Z.zip.sha256,
  4. attests build provenance for the zip with actions/attest-build-provenance,
  5. uploads the zip and checksum as a workflow artifact,
  6. creates a draft release from the matching CHANGELOG section, plus install and verify instructions, for a maintainer to review and publish. Releases are immutable once published.

Pull requests that touch the workflow or build.sh run steps 1–5 as a dry run, without creating a release. All actions are pinned to commit SHAs, like ci.yml, and the workflow uses least-privilege permissions.

README gains a "verify the download" section (gh attestation verify SysBar-x.y.z.zip -R SwifAI/sysbar) and a release-checklist step for tagging. AGENTS.md describes the workflow.

How it was tested

  • The YAML parses. The release-notes step was run locally against the current CHANGELOG: it extracts the 1.2.1 entry correctly and fails with an error for a version that has no entry.
  • This PR runs the workflow as a dry run on GitHub. It should build, package, attest and upload the artifact, and skip the release steps.
  • BuildMetadataTests passes with the README changes.

🤖 Generated with Claude Code

…on version tags

A vX.Y.Z tag now checks the tag against build.sh, runs the tests, builds and
zips the app with its SHA-256, attests build provenance, and creates a draft
release from the CHANGELOG entry. Pull requests touching packaging run the
same steps as a dry run without creating a release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SwifAI
SwifAI merged commit 2415bcf into main Oct 22, 2026
5 checks passed
@SwifAI
SwifAI deleted the build/release-workflow branch October 22, 2026 22:23
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