Level 1 example of the WordPress Playground "Preview in Playground" v4 reusable workflows.
A single plugin with a (toy) build step. Demonstrates the simplest caller setup: one artifacts: entry on the build side and kind: plugin on the publish side.
my-plugin.php— the plugin..github/workflows/pr-preview-build.yml— runs onpull_request, produces a zip..github/workflows/pr-preview-publish.yml— runs onworkflow_run, exposes the zip and posts the preview button.
Both reusable workflows use WordPress/action-wp-playground-pr-preview at @v4.
Update the build and publish references together when changing versions.
The repository name retains v3 so existing links keep working.