Add GitHub Action to automate ai.zip release asset #115
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.
What?
Adds automated GitHub Action workflow to build and attach
ai.zipto releases.Closes #109
This PR creates a new workflow that automatically generates the plugin zip file and attaches it as a release asset whenever a new release is published on GitHub.
Why?
Currently, the plugin zip must be manually packaged and attached to each GitHub release. This creates extra work and potential for inconsistency across releases.
Issue #109 requested automation to:
ai.zip)How?
The implementation:
.github/workflows/release.ymlthat triggers onrelease: publishedeventsbuild-plugin-zip.yamlworkflow (DRY principle)ai.zipas a release asset usingsoftprops/action-gh-releaseThe workflow follows WordPress security best practices:
Testing Instructions
Local Build Verification
ai.zipis created successfullyWorkflow Testing (Maintainers Only)
build-plugin-zip.yamlworkflow which requiresSVN_USERNAMEsecret that only exists in the WordPress/ai repository.To test in the WordPress/ai repository:
trunkv0.2.0-rc1)v0.2.0-rc1, Target:trunkai.zipappears in the Assets sectionExpected Results
ai.zipappears in release assetsTesting Instructions for Keyboard
N/A - This PR does not affect the user interface. It only adds backend automation for release management.
Screenshots or screencast
N/A - This is a CI/CD workflow change with no visual output. The workflow will appear in the Actions tab when releases are published.
Test Evidence (Local Build)
Additional Notes
Why Reusing
build-plugin-zip.yaml?Security Considerations