Skip to content

ci: build and publish the plugin from the release itself - #112

Merged
scotwells merged 1 commit into
mainfrom
ci/auto-update-plugin-index
Aug 27, 2026
Merged

ci: build and publish the plugin from the release itself#112
scotwells merged 1 commit into
mainfrom
ci/auto-update-plugin-index

Conversation

@scotwells

@scotwells scotwells commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Publishing a release now ships the plugin end to end — the archives get built and attached, and the PR bumping the plugin catalog opens on its own.

Today both halves are manual, which is the gap between "released" and "users can install it." That's the step most likely to get skipped when a preview tag is meant to reach people while their feedback still matters.

The catalog PR still gets review and CI in that repo — nothing is auto-merged. Hand-written release notes are preserved.

Needs an org admin first: confirm datumctl-plugins is among the selected repositories for the datum-release-bot app. If it isn't, only the catalog step fails; the release and its archives are unaffected.

Verified against a clean checkout of v0.7.0-dev.2: all five archives and checksums.txt build, and the catalog update reproduces the manifest hand-written for datum-cloud/datumctl-plugins#24 byte for byte.

🤖 Generated with Claude Code

Publishing a plugin release has been two manual steps: run goreleaser by hand to attach the archives, then hand-edit plugins/dns.yaml in datum-cloud/datumctl-plugins to bump the version, rewrite five download URLs, and copy five digests out of checksums.txt. Both are mechanical, both sit between "released" and "users can install it", and the second is caught only by catalog CI when a digest is wrong.

This runs both from the release event. goreleaser attaches the archives with `mode: append`, so it adds to the release the tagger already wrote rather than replacing the notes, and the catalog step then opens the bump PR through the shared update-plugin-index action. The catalog PR still goes through review and CI there; nothing is auto-merged.

Both jobs live in one workflow because the catalog update reads the checksums.txt that goreleaser uploads, and `needs:` cannot reach across workflow files. That ordering is what makes the workflow safe: an earlier draft guarded against releases carrying no plugin assets, on the evidence that v0.6.5 through v0.6.8 have none. That evidence does not hold — the plugin was only added on 2026-08-22 and v0.6.8 was tagged on 2026-07-29, so those releases predate it entirely. Every release cut from main now ships the plugin, which means a missing checksums.txt is not a release to skip politely but a build that failed, and skipping it would have left the catalog silently pinned to an old version. Sequencing the jobs removes the question: this workflow is what puts the assets there.

goreleaser uploads with the built-in token, since the release is in this repository. The catalog is not, so that job mints a token from the release bot app — the same app datumctl/release.yaml uses — in the job that consumes it, because a masked value handed between jobs arrives empty.

Verified against a clean checkout of v0.7.0-dev.2, which is the state CI sees: goreleaser's own validate step passes there (locally it needed --skip=validate only because of untracked files) and all five archives plus checksums.txt are produced. actionlint is clean.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@scotwells scotwells changed the title ci: open the catalog PR automatically on a plugin release ci: build and publish the plugin from the release itself Aug 26, 2026
@scotwells
scotwells force-pushed the ci/auto-update-plugin-index branch from 54e8fb4 to 650b4c4 Compare August 26, 2026 19:09
@scotwells
scotwells requested review from a team and kevwilliams August 26, 2026 19:13
@scotwells
scotwells merged commit 11aa1f2 into main Aug 27, 2026
10 checks passed
@scotwells
scotwells deleted the ci/auto-update-plugin-index branch August 27, 2026 19:15
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