Add automated release GitHub Action - #219
Draft
claytoncollie wants to merge 1 commit into
Draft
Conversation
Introduces a GitHub Actions workflow triggered by version tags (v*) that builds assets, packages a clean ZIP via .distignore, and creates a GitHub release with the artifact attached. Adds release process documentation to README. Closes #197 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds an automated GitHub Actions-based release pipeline so tagged versions can be built and published as GitHub Releases with a packaged ZIP suitable for WordPress installation.
Changes:
- Adds a
release.ymlworkflow that triggers onv*tags (and supports manualworkflow_dispatch) to build assets, install production dependencies, ZIP the plugin, and create a GitHub Release. - Introduces
.distignoreto control which files are excluded from the packaged release directory/ZIP. - Documents the release/tagging process in
README.md.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| README.md | Documents the new automated release/tagging workflow for maintainers. |
| .github/workflows/release.yml | Implements the automated build/package/release GitHub Action. |
| .distignore | Defines exclusions used during packaging to produce a clean release ZIP. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+1
to
+3
| /.github | ||
| /.husky | ||
| /node_modules |
| ``` | ||
| 3. **Automation handles the rest:** The GitHub Action installs dependencies, builds assets, packages a clean ZIP (excluding dev files via `.distignore`), and creates a GitHub release with auto-generated release notes. | ||
|
|
||
| The workflow can also be triggered manually from the Actions tab using `workflow_dispatch` for dry runs or re-releases. |
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.
Summary
.github/workflows/release.yml) that automates the release process when av*tag is pushed.distignorefile to exclude dev-only files from the release ZIPREADME.mdThe workflow builds assets, installs production Composer dependencies, packages a clean ZIP using
rsync --exclude-from=.distignore, and creates a GitHub release with the artifact attached. Supportsworkflow_dispatchfor manual triggers.Closes #197
Test plan
v0.0.0-test) to verify the workflow runs successfullynode_modules,.github, linting configs, etc.)10up-experience/directory structure for WordPress installationworkflow_dispatchmanual trigger from the Actions tab