Skip to content

ci: apply .distignore and correct ASSETS_DIR in faustwp deploy#2388

Merged
josephfusco merged 1 commit into
canaryfrom
ci/wp-org-deploy-payload-fixes
Jun 3, 2026
Merged

ci: apply .distignore and correct ASSETS_DIR in faustwp deploy#2388
josephfusco merged 1 commit into
canaryfrom
ci/wp-org-deploy-payload-fixes

Conversation

@josephfusco
Copy link
Copy Markdown
Member

Summary

Two defects in the WordPress.org deploy left the published payload bloated. The shipped faustwp 1.8.8 zip is ~1.77 MB; with these fixes a clean payload is roughly one-tenth that size and excludes dev-only files. The plugin still functions correctly today — these are payload hygiene fixes, not a security regression — and a redeploy will replace the SVN tag with a clean copy.

Defects

  • Upstream 10up/action-wordpress-plugin-deploy skips .distignore when BUILD_DIR is set. The deploy.sh branch that uses --exclude-from $GITHUB_WORKSPACE/.distignore runs only for the no-BUILD_DIR case; the BUILD_DIR branch is a plain rsync without exclusions.
  • ASSETS_DIR is resolved against $GITHUB_WORKSPACE, not $BUILD_DIR. The previous value .wordpress-org pointed at the repo root (non-existent), so wp.org assets fell through to the trunk rsync and shipped to user sites.

Changes

  • New Stage clean plugin payload step rsyncs plugins/faustwp/ into plugin-build/faustwp/ applying plugins/faustwp/.distignore.
  • BUILD_DIR updated to plugin-build/faustwp.
  • ASSETS_DIR updated to plugins/faustwp/.wordpress-org (workspace-relative).

Test plan

  • Dispatch with dry_run: true, tag: @faustwp/wordpress-plugin@1.8.8. Confirm the staging step runs, the deploy log shows expected files only, and no tests/, phpstan/, composer.*, or .wordpress-org/ content appears under trunk/.
  • Dispatch with dry_run: false, redeploy: true, tag: @faustwp/wordpress-plugin@1.8.8. Verify the new SVN commit reflects the clean payload and .wordpress-org/ content lands under assets/, not trunk/.

@josephfusco josephfusco requested a review from a team as a code owner June 3, 2026 16:42
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 3, 2026

⚠️ No Changeset found

Latest commit: 251b31d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@josephfusco josephfusco merged commit 834bd67 into canary Jun 3, 2026
14 checks passed
@josephfusco josephfusco deleted the ci/wp-org-deploy-payload-fixes branch June 3, 2026 16:42
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2026

📦 Next.js Bundle Analysis for @faustwp/getting-started-example

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

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