-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #418 from WordPress/add/build-step-docs
Add docs for building the plugin
- Loading branch information
Showing
93 changed files
with
516 additions
and
431 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.git | ||
.github | ||
.idea | ||
.wordpress-org | ||
build | ||
build-cs | ||
build-phpunit | ||
docs | ||
node_modules | ||
patches | ||
test-content | ||
tests | ||
|
||
*.DS_Store | ||
.DS_Store | ||
.distignore | ||
.editorconfig | ||
.eslintrc.js | ||
.gitattributes | ||
.gitignore | ||
.nvmrc | ||
.phpunit.result.cache | ||
.wp-env.json | ||
.wp-env.override.json | ||
behat.yml | ||
CODE_OF_CONDUCT.md | ||
codecov.yml | ||
composer.json | ||
composer.lock | ||
CONTRIBUTING.md | ||
package.json | ||
package-lock.json | ||
phpcs.xml | ||
phpcs.xml.dist | ||
phpmd.xml | ||
phpstan.neon | ||
phpstan.neon.dist | ||
phpunit.xml | ||
phpunit.xml.dist | ||
plugin-check.iml | ||
README.md | ||
SECURITY.md |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[Back to overview](./README.md) | ||
|
||
# Releasing a New Version of Plugin | ||
|
||
This project uses a [GitHub Action workflow](../.github/workflows/deploy.yml) for automatically deploying | ||
stable releases of Plugin Check to the [WordPress plugin directory](https://wordpress.org/plugins/plugin-check/), so there is no manual build step involved. | ||
|
||
Follow these steps: | ||
|
||
1. Bump the `Version` field in the main plugin file's header. | ||
2. Bump `WP_PLUGIN_CHECK_VERSION` in the same file. | ||
3. Bump the `Stable tag` field in the `readme.txt` file. | ||
4. Update the changelog in `readme.txt`. | ||
5. Commit this to the default branch. | ||
6. On GitHub, go to "Releases" and create a new release. | ||
7. Once published, this release will be automatically deployed to the plugin directory. | ||
|
||
## Building the Plugin | ||
|
||
If you would like to manually replicate the build process locally, you can do so | ||
using the [`wp dist-archive` WP-CLI command](https://github.com/wp-cli/dist-archive-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 | ||
``` | ||
|
This file contains 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
Oops, something went wrong.