Skip to content
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

Create GitHub Actions workflow to build zip #2

Merged
merged 11 commits into from
Apr 28, 2024

Conversation

chriskyfung
Copy link
Member

No description provided.

Introduce CI/CD workflow for on-demand ZIP build using 10up/action-wordpress-plugin-build-zip. This update implements a GitHub Action to automate the creation of a ZIP file for our WordPress plugin when it was run manually on GitHub, GitHub CLI, or the REST API.

The ZIP is available for download immediately, facilitating rapid testing and deployment. To optimize storage, the ZIP file is retained for only 24 hours after creation. This ensures our CI/CD pipeline remains efficient and aligned with our development practices.
Correct the version tag for 10up/action-wordpress-plugin-build-zip
This commit updates the GitHub Actions workflow to use Node.js 20, following the deprecation of Node.js 16. The 'actions/checkout' action has been upgraded to version 3 to ensure compatibility with the new runtime environment.

For more details on this transition, please refer to the GitHub Changelog:
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
- Eliminated the `npm install` and `npm build` commands from the 'Build plugin' step to streamline the workflow.
- Substituted the `10up/action-wordpress-plugin-build-zip` with the `actions/upload-artifact@v4`.
Copy bash commands from `tools/build_release.sh`
@chriskyfung chriskyfung added the enhancement New feature or request label Apr 28, 2024
@chriskyfung chriskyfung self-assigned this Apr 28, 2024
@chriskyfung chriskyfung merged commit f1491c6 into build-zip-action Apr 28, 2024
1 check passed
@chriskyfung chriskyfung deleted the build-zip-via-action branch April 28, 2024 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant