Skip to content

Chain WordPress.org deploy into publish-release.yml - #843

Merged
andypotanin merged 1 commit into
latestfrom
feature/wporg-deploy
Sep 2, 2026
Merged

Chain WordPress.org deploy into publish-release.yml#843
andypotanin merged 1 commit into
latestfrom
feature/wporg-deploy

Conversation

@andypotanin

@andypotanin andypotanin commented Sep 2, 2026

Copy link
Copy Markdown
Member

What

Adds a deploy-wporg job to publish-release.yml that runs after a successful GitHub release and deploys the tag to the WordPress.org Plugin Directory via the new reusable workflow (udx/reusable-workflows#60).

  • Skipped automatically for pre-releases and when the new deploy_wporg dispatch input is unchecked
  • Uses org secrets SVN_USERNAME/SVN_PASSWORD (scoped: this repo only), referenced via secrets.* — no credentials in the repo

Safe to merge after udx/reusable-workflows#60 (until then the job would fail fast on a missing workflow).


Devin Review

Copilot AI balanced review requested due to automatic review settings September 2, 2026 17:03
deploy-wporg:
if: ${{ inputs.deploy_wporg && !inputs.prerelease }}
needs: release
uses: udx/reusable-workflows/.github/workflows/wp-org-svn-deploy.yml@master

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

needs: release
uses: udx/reusable-workflows/.github/workflows/wp-org-svn-deploy.yml@master
with:
tag: ${{ github.event.inputs.tag }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Distinct release tags misname packages

When tag differs from the plugin version, deploy-wporg names the WordPress.org package after the GitHub tag. The stable version then has no matching SVN package.

Prompt for agents
The publish workflow supports separate tag and version inputs, but wp-org-svn-deploy.yml accepts only tag and passes it to the 10up deploy action as VERSION. Extend the reusable workflow to accept the WordPress plugin version separately from the Git checkout tag, then pass the caller's version input to it. Preserve the existing release workflow's fallback behavior when version is omitted, such as deriving the stable version from readme.txt, so tags like 1.2.3a or v1.2.3 can still deploy the correct WordPress.org tags/<version> directory.
Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The workflow correctly gates deployment and matches the reusable workflow contract, pending merge of udx/reusable-workflows#60.

Pull request overview

Chains WordPress.org deployment to the existing GitHub release workflow.

Changes:

  • Adds an optional WordPress.org deployment input.
  • Deploys successful stable releases using the reusable workflow.
  • Passes scoped SVN credentials securely.
File summaries
File Description
.github/workflows/publish-release.yml Adds conditional WordPress.org deployment after release.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@andypotanin
andypotanin merged commit feee80c into latest Sep 2, 2026
7 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.

3 participants