-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added "Build release zip" GitHub Action #168
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed the zip file generated on your repo in the action https://github.com/faisal-alvi/simple-local-avatars/actions/runs/3603276090
As noted inline, it's including some files that aren't needed.
- name: Cache vendor | ||
id: cache-composer | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-vendor | ||
with: | ||
path: | | ||
vendor | ||
~/.composer/cache | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Composer only uses dev dependencies and isn't loaded in production (ie, autoload isn't referenced) so can be ignored from the build here. It's not included in the wp.org version either, see https://plugins.trac.wordpress.org/browser/simple-local-avatars/trunk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The composer dependencies install step is removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you kindly, this looks good.
Are you able to re-run against your fork and self merge once you confirm the zip matches that on wp.org?
@peterwilsoncc I checked the new zip and it now matches with the wp.org ( |
Description of the Change
PR Adds "Build release zip" GitHub Action to generate the release zip before the actual release and Release Instructions are updated to test generated zip before shipping a release.
Closes #167
How to test the Change
Fork the repo, merged this workflow, and tested the ZIP locally.
Changelog Entry
Added - "Build release zip" GitHub Action.
Credits
Props @faisal-alvi
Checklist: