Repository navigation
Add build-and-distribute workflow - #1
Merged
Merged
Conversation
Switch MultiSyde to the inpsyde reusable build-and-distribute workflow and the dev/main branch model: dev/main holds the source and becomes the default branch, while main is generated by CI. Every push to a dev/** branch builds the plugin (composer --no-dev, .distignore applied) and the deploy bot commits the result to the branch without the dev/ prefix, stamping Version and the source SHA into the plugin header. The built main has no .github directory, so bot pushes trigger no workflows. The build changes what ships, so Plugin Check now also runs on the built artifact in a plugin-check-built job, not only on the source. Snapshot builds carry a non-release version that never matches the readme Stable tag, so those two version codes are ignored there; the release workflow is meant to check them strictly. The source Plugin Check now runs on dev/main instead of main, package.json gets the build script the reusable workflow calls, and CONTRIBUTING points pull requests at dev/main.
🔍 WordPress Plugin Check Report
📊 Report
|
| 📍 Line | 🔖 Check | 💬 Message |
|---|---|---|
169 |
WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound | Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "self::FILTER_MAX_SITES". |
🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This moves MultiSyde onto the
inpsyde/reusable-workflowsbuild-and-distribute workflow and thedev/mainbranch model.What changes
dev/mainholds the source and becomes the default branch.mainis generated by CI. Every push to adev/**branch builds the plugin withcomposer --no-devand.distignore. The deploy bot commits the result to the same branch name minus thedev/prefix, and stampsVersion:andSHA:intomultisyde.php. The builtmainhas no.github/, so bot pushes start no workflows.plugin-check-builtjob downloads the build artifact and runswordpress/plugin-check-actionon it without checking out the source, so it checks exactly what ships. The build changes the code (npm build output,.distignore,--no-devvendor, header rewrite), so a green source check alone doesn't prove the package passes. Snapshot builds carry a non-release version like0.0.0+main.<sha>, soplugin_header_invalid_plugin_versionandstable_tag_mismatchare ignored in this workflow only. The release workflow checks both strictly.plugin-check.yml(the source check) now runs on PRs and ondev/main.package.jsongets thebuildscript the reusable workflow calls.CONTRIBUTING.mdpoints PRs atdev/main.PACKAGE_VERSION. It must be a version Composer accepts, e.g.1.3.0.Before merging (repo admin)
dev/mainfrommain, make it the default branch, and point this PR at it.dev/main. Onmain, allow pushes from the deploy bot only.DEPLOYBOT_EMAIL,DEPLOYBOT_USER,DEPLOYBOT_SSH_PRIVATE_KEYandDEPLOYBOT_SSH_PUBLIC_KEYare available toinpsyde/multisyde.dev/main.After the merge, the first push to
dev/mainoverwritesmainwith the built plugin.Tested
All of this ran end to end on a local Gitea with a mirror of
inpsyde/reusable-workflows:dev/*→ built branchmainin wp-envplugin-check-builtcatches itOnly verifiable here on GitHub: version derivation from the latest GitHub Release.