ci: restore WordPress.org deploy workflow for faustwp#2384
Conversation
|
📦 Next.js Bundle Analysis for @faustwp/getting-started-exampleThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
There was a problem hiding this comment.
Pull request overview
Restores and modernizes the WordPress.org deployment workflow for the faustwp plugin by reintroducing a dedicated GitHub Actions workflow that deploys on Changesets-style tag pushes and supports manual dispatch (including dry-run and redeploy options).
Changes:
- Adds a
Deploy to WordPress.orgworkflow triggered by@faustwp/wordpress-plugin@*tag pushes andworkflow_dispatch. - Computes an SVN version from the Changesets tag format and optionally deletes an existing SVN tag for redeploys.
- Deploys via
10up/action-wordpress-plugin-deployand uploads the generated ZIP to the corresponding GitHub Release.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Summary
Restores the
Deploy to WordPress.orgworkflow for thefaustwpplugin, removed in late 2024. Triggers on@faustwp/wordpress-plugin@*tag pushes and calls10up/action-wordpress-plugin-deploydirectly.Changes from the prior version
10up/action-wordpress-plugin-deploy@v2.3.0(SHA-pinned) replaces the vendored composite action previously at.github/actions/release-plugin/. Upstream now supports the monorepo path viaBUILD_DIR.Compute SVN version from tagstep to strip the@faustwp/wordpress-plugin@prefix; upstream's deploy script only stripsrefs/tags/and a leadingv.workflow_dispatchwithtag,dry_run(defaulttrue), andredeployinputs. Dry run exercises credentials end-to-end without committing; redeploy deletes the SVN tag before publishing.softprops/action-gh-release@v2.4.0(SHA-pinned).actions/checkout@v5,runs-on: ubuntu-22.04, explicitrefon checkout for the dispatch path.Test plan
dry_run: trueandtag: @faustwp/wordpress-plugin@1.8.0. Confirm the deploy step authenticates againstplugins.svn.wordpress.org/faustwp/and exits without committing.SVN_PASSWORDand rerun.