ci: fix wp.org deploy workflow (wp-cli missing, no manual re-run path)#10
Merged
Conversation
…e version First real run of deploy-wporg.yml (v2.3.0 publish) failed at "Generate translation files": composer i18n shells out to wp-cli, which the runner doesn't have. Add it via setup-php tools. Also: - workflow_dispatch with a version input: release events pin the workflow file to the tagged commit, so a fixed workflow can never re-serve an already-published tag without a manual path. - Strip a leading "v" from the release tag so the SVN tag matches readme.txt's Stable tag (2.3.0, not v2.3.0). - Guard the release-asset upload to release events. Co-Authored-By: Claude Fable 5 <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.
The v2.3.0 publish was the first real run of deploy-wporg.yml and it failed before reaching SVN: the runner has no wp-cli for
composer i18n. Fixes that, adds a workflow_dispatch re-run path (release events pin the workflow to the tagged commit, so the fix can't apply to the existing v2.3.0 tag without one), normalizes the version (strips leading v to match the Stable tag), and guards the asset upload to release events.After merge, deploying v2.3.0 requires the SVN_USERNAME / SVN_PASSWORD secrets (not set on this repo) and then dispatching the workflow with version 2.3.0.
🤖 Generated with Claude Code