Skip to content

About

Single-plugin example for the WordPress Playground v3 reusable preview workflows (kind: plugin shortcut).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

preview-in-playground-button-v3-example-simple

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.

Files

  • my-plugin.php — the plugin.
  • .github/workflows/pr-preview-build.yml — runs on pull_request, produces a zip.
  • .github/workflows/pr-preview-publish.yml — runs on workflow_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.

About

Single-plugin example for the WordPress Playground v3 reusable preview workflows (kind: plugin shortcut).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages