Skip to content

Add a release workflow for the Swift API - #27

Merged
JongChern merged 1 commit into
mainfrom
ci/release-workflow
Nov 5, 2026
Merged

JongChern merged 1 commit into
mainfrom
ci/release-workflow

Conversation

@JongChern

Copy link
Copy Markdown
Contributor

Adds .github/workflows/release.yml, a manual workflow for Swift API releases, and a "Releasing" section in AGENTS.md.

How to use it

Go to Actions > Release > Run workflow on main, or run:

gh workflow run release.yml --ref main -f version=1.1.0

It tags the commit ShimmerSwiftAPI_v<version>, the same naming as ShimmerSwiftAPI_v1.0.0, and creates the GitHub release.

What it does

  1. Refuses a run from a branch other than main. It also refuses a version that is not MAJOR.MINOR.PATCH, a tag that already exists, or a version not above the last ShimmerSwiftAPI_v* release.
  2. Tests first: it runs xcodebuild test -scheme ShimmerBluetoothTests, the same gate as swift.yml, on the commit being released.
  3. Release notes: it uses GitHub's generated "What's Changed" list, as the earlier releases did. The list counts from the previous ShimmerSwiftAPI_v* tag, so the ShimmerBLEGrpc_v* tags are skipped.
  4. Options:
    • prerelease marks the release as a pre-release.
    • dry_run runs the tests and shows the notes in the run summary, but creates no tag or release.

What it doesn't do

  • Binaries: none are attached, so releases stay source-only, as before.
  • Version number: it leaves MARKETING_VERSION unchanged.
  • gRPC releases: it does not make ShimmerBLEGrpc_v* releases.

Permissions

The repository's default workflow token is read-only, so the workflow requests contents: write for itself. No tag ruleset blocks it.

Testing

  • Version checks: tested in a shell.
    • 1.10.0 is accepted after 1.9.0.
    • 1.0.1, 1.1, v1.1.0 and 1.1.0-rc1 are refused.
    • Versions are compared field by field with sort -t. -k1,1n -k2,2n -k3,3n rather than sort -V, which might not exist on the macOS runner.
  • Release notes: the generate-notes call was run against this repository for 1.1.0. It returned the PRs merged since ShimmerSwiftAPI_v1.0.0.
  • Not yet run: the workflow itself. A workflow_dispatch workflow can only be started once it is on the default branch. After merging, run it with dry_run=true first.

🤖 Generated with Claude Code

A manual workflow (Actions > Release > Run workflow) that tags main as
ShimmerSwiftAPI_v<version> and creates its GitHub release, after the
test suite passes on that commit. Notes are GitHub's generated list,
counted from the previous ShimmerSwiftAPI_v* tag rather than from the
gRPC server's tags. It refuses a run off main, a version that is not
MAJOR.MINOR.PATCH, one that exists, or one below the last release, and
a dry run stops before creating anything.

Source-only, like the releases before it. AGENTS.md documents it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@harithjamadi
harithjamadi self-requested a review November 5, 2026 02:41
@JongChern
JongChern merged commit b15d019 into main Nov 5, 2026
1 check 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.

2 participants