Create pr-preview.yml for Playground previews on PRs
#1050
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the Change
This PR looks to make use of the WP Playground action to generate a preview button on PRs. A future iteration here would be to have a custom blueprint for ClassifAI that loads in a variety of test content that could be used for PR testing as well as on the ClassifAI Live Preview.
Copilot Summary
This pull request introduces a new GitHub Actions workflow to automate building and previewing pull requests. The workflow handles dependency installation, building the project, packaging the plugin, and providing a preview environment for PRs.
CI/CD Automation and PR Preview:
.github/workflows/pr-preview.ymlto automate building the plugin, caching dependencies, packaging the build, and exposing a preview environment for pull requests.How to test the Change
Will see what happens once I open the PR and whether a functioning Playground link appears.
Changelog Entry
Credits
Props @jeffpaul.
Checklist: