Auto-cut Arduino releases on merge to main#751
Merged
Conversation
release.yml cuts a patch release on every merge to main: it bumps library.properties via an auto-opened-and-merged bump PR (main is protected, so the bump can't be pushed directly), creates the plain-tag GitHub release the Arduino Library Manager picks up, then dispatches the Godot addon build at the new tag to attach amy-godot-addon.zip. Fully GITHUB_TOKEN-based, no PAT: workflow_dispatch is the one event the built-in token can trigger, so the Godot zip still attaches without needing a PAT-pushed tag. GITHUB_TOKEN merges don't re-trigger workflows, so the bump merge can't loop; a [skip release] marker is belt-and-suspenders. Requires the org-level "Allow GitHub Actions to create and approve pull requests" setting (now enabled for shorepine). Co-Authored-By: Claude Opus 4.8 <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.
Cuts a GitHub release on every merge to
main(the Arduino Library Manager polls releases and picks each one up), so releasing no longer needs manual steps.What
release.ymldoes, per merge tomainversion=fromlibrary.propertiesand computes the next patch (1.2.7 → 1.2.8), skipping any tag that already exists.bump-XPR and merges it. The bump can't be pushed straight tomain— it's a protected branch (PR required,enforce_adminson) — so this mirrors the manualclaude/bump-*flow used for every release to date.1.2.8, nov— Arduino requires this format).godot-addon.ymlat the new tag soamy-godot-addon.zipstill attaches.Design notes
GITHUB_TOKEN-based, no PAT. AGITHUB_TOKEN-created tag can't firegodot-addon.yml'spush: tagstrigger, butworkflow_dispatchis the one eventGITHUB_TOKENcan trigger — so we dispatch the Godot build at the tag (its run seesgithub.ref=refs/tags/<ver>and attaches the zip). Nothing to renew.GITHUB_TOKENdon't re-trigger workflows, so the bump merge can't re-fire this workflow. A[skip release]marker on the merge commit + the jobif:are belt-and-suspenders.concurrency: release) so two quick merges can't collide on a version.Prerequisite (already done)
Requires the org-level "Allow GitHub Actions to create and approve pull requests" setting, now enabled for
shorepine.Heads-up
Merging this PR is itself a merge to
main, so it will immediately cut1.2.8as the first auto-release. To skip a release for any future merge, put[skip release]in the merge commit message.🤖 Generated with Claude Code