This project uses a GitHub Action workflow for automatically deploying stable releases of Plugin Check to the WordPress plugin directory, so there is no manual build step involved.
Follow these steps:
- Bump the
Version
field in the main plugin file's header. - Bump
WP_PLUGIN_CHECK_VERSION
in the same file. - Bump the
Stable tag
field in thereadme.txt
file. - Update the changelog in
readme.txt
. - Update the checks lists in
docs/checks.md
. - Commit this to the default branch.
- On GitHub, go to "Releases" and create a new release.
- Once published, this release will be automatically deployed to the plugin directory.
If you would like to manually replicate the build process locally, you can do so
using the wp dist-archive
WP-CLI command.
In your terminal, you can run this in the directory where you checked out this repository:
# Ensure PHPCS is installed, as it is required for some of the checks.
composer install --no-dev
# Build the ZIP file.
wp dist-archive . /path/to/write/the/plugin-check.zip
Note: you might first need to install the WP-CLI command if it's not yet available:
wp package install wp-cli/dist-archive-command