Add GitHub Action to build production-ready WordPress plugin zip on release#1233
Merged
boonebgorges merged 6 commits into5.9.xfrom Dec 11, 2025
Merged
Add GitHub Action to build production-ready WordPress plugin zip on release#1233boonebgorges merged 6 commits into5.9.xfrom
boonebgorges merged 6 commits into5.9.xfrom
Conversation
Co-authored-by: boonebgorges <246627+boonebgorges@users.noreply.github.com>
Co-authored-by: boonebgorges <246627+boonebgorges@users.noreply.github.com>
Co-authored-by: boonebgorges <246627+boonebgorges@users.noreply.github.com>
Co-authored-by: boonebgorges <246627+boonebgorges@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add GitHub action for building production-ready zip
Add GitHub Action to build production-ready WordPress plugin zip on release
Dec 11, 2025
Contributor
|
@copilot Two questions for you:
|
Contributor
Author
Great questions!
The draft release approach is probably the cleanest for testing the actual release flow without affecting the main repository. |
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.
Automates the build process for WordPress plugin releases by running npm and composer builds, then creating a distribution-ready zip file attached to GitHub releases.
Changes
.distignore: Defines files excluded from production builds (dev dependencies, tests, source files, documentation, vendor test directories).github/workflows/build-release.yml: Workflow triggered on release creation that:npm run buildcomposer install --no-dev.distignoreexclusionsResult
Production zip is ~1.7MB containing only runtime-necessary files (built assets, production dependencies, plugin code). Version bumps and readme updates remain manual.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/DaveChild/Text-Statistics/zipball/e83d5f82726db80e662ae305fce3b3c41299b4f5/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/QphVJX /usr/bin/composer install --no-dev --optimize-autoloader --prefer-dist --no-interaction(http block)https://api.github.com/repos/Masterminds/html5-php/zipball/f5ac2c0b0a2eefca70b2ce32a5809992227e75a6/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/QphVJX /usr/bin/composer install --no-dev --optimize-autoloader --prefer-dist --no-interaction(http block)https://api.github.com/repos/firebase/php-jwt/zipball/8f718f4dfc9c5d5f0c994cdfd103921b43592712/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/uoRpb4 /usr/bin/composer install --no-dev --optimize-autoloader(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/QphVJX /usr/bin/composer install --no-dev --optimize-autoloader --prefer-dist --no-interaction(http block)https://api.github.com/repos/fivefilters/readability.php/zipball/2fd58a6cc626124a05721efb9b3632e91783d487/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/QphVJX /usr/bin/composer install --no-dev --optimize-autoloader --prefer-dist --no-interaction(http block)https://api.github.com/repos/mattwright/URLResolver.php/zipball/416039192cb6d9158bdacd68349bceff8739b857/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/QphVJX /usr/bin/composer install --no-dev --optimize-autoloader --prefer-dist --no-interaction(http block)https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/QphVJX /usr/bin/composer install --no-dev --optimize-autoloader --prefer-dist --no-interaction(http block)https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/QphVJX /usr/bin/composer install --no-dev --optimize-autoloader --prefer-dist --no-interaction(http block)https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/QphVJX /usr/bin/composer install --no-dev --optimize-autoloader --prefer-dist --no-interaction(http block)https://api.github.com/repos/simplehtmldom/simplehtmldom/zipball/3c87726400e59d8e1bc4709cfe82353abeb0f4d1/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/QphVJX /usr/bin/composer install --no-dev --optimize-autoloader --prefer-dist --no-interaction(http block)https://api.github.com/repos/thephpleague/uri-interfaces/zipball/00e7e2943f76d8cb50c7dfdc2f6dee356e15e383/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/QphVJX /usr/bin/composer install --no-dev --optimize-autoloader --prefer-dist --no-interaction(http block)https://api.github.com/repos/thephpleague/uri/zipball/09da64118eaf4c5d52f9923a1e6a5be1da52fd9a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/uoRpb4 /usr/bin/composer install --no-dev --optimize-autoloader(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/QphVJX /usr/bin/composer install --no-dev --optimize-autoloader --prefer-dist --no-interaction(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.