Update release workflow to workflow_dispatch-only pattern#5
Merged
Conversation
…ce-ai pattern Drops the tag-push trigger. The workflow now creates the tag itself via softprops/action-gh-release, making a release a deliberate UI action rather than a side-effect of pushing a tag. Adds version-header validation (input must match `Version:` in hey-woo.php) and a tag-existence guard that fail fast before any build work happens. Adds draft/prerelease inputs and a zip-existence check post-build. Artifact retention bumped to 30 days and named with the version. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
9bf3edb to
8279765
Compare
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.
Summary
Follows the same release pattern as
woocommerce/woocommerce-ai—workflow_dispatchonly. The workflow creates the tag and Release itself; no tag push needed.Changes from the initial release.yml (PR #4):
push: tags: v*triggerversion/draft/prereleaseworkflow inputspermissions: contents: write(required for tag + Release creation)versioninput matches theVersion:header inhey-woo.php— fails fast if they divergehey-woo-<version>with 30-day retentionsoftprops/action-gh-releasenow receivestag_name,target_commitish,draft, andprereleaseRelease process (after this merges)
Version:inhey-woo.phpon a PR and merge it to trunk0.2.0), set draft/prerelease as needed, runThe workflow validates the version, creates the
v0.2.0tag, builds the zip, and publishes the GitHub Release — all in one step.🤖 Generated with Claude Code