Skip to content

Update release workflow to workflow_dispatch-only pattern#5

Merged
louwie17 merged 1 commit intotrunkfrom
update/release-workflow
Apr 30, 2026
Merged

Update release workflow to workflow_dispatch-only pattern#5
louwie17 merged 1 commit intotrunkfrom
update/release-workflow

Conversation

@louwie17
Copy link
Copy Markdown
Contributor

Summary

Follows the same release pattern as woocommerce/woocommerce-aiworkflow_dispatch only. The workflow creates the tag and Release itself; no tag push needed.

Changes from the initial release.yml (PR #4):

  • Drops the push: tags: v* trigger
  • Adds version / draft / prerelease workflow inputs
  • Adds permissions: contents: write (required for tag + Release creation)
  • Validates that the version input matches the Version: header in hey-woo.php — fails fast if they diverge
  • Checks the target tag doesn't already exist on the remote before building
  • Adds a post-build zip-existence guard
  • Artifact named hey-woo-<version> with 30-day retention
  • softprops/action-gh-release now receives tag_name, target_commitish, draft, and prerelease

Release process (after this merges)

  1. Bump Version: in hey-woo.php on a PR and merge it to trunk
  2. Go to Actions → Release Plugin → Run workflow
  3. Enter the version (e.g. 0.2.0), set draft/prerelease as needed, run

The workflow validates the version, creates the v0.2.0 tag, builds the zip, and publishes the GitHub Release — all in one step.

🤖 Generated with Claude Code

…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>
@louwie17 louwie17 force-pushed the update/release-workflow branch from 9bf3edb to 8279765 Compare April 30, 2026 09:54
@louwie17 louwie17 merged commit 404b098 into trunk Apr 30, 2026
2 checks 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.

1 participant