Skip to content

Commit

Permalink
Merge pull request #1 from craftweeks/build-zip-via-action
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chriskyfung authored Apr 28, 2024
2 parents f06790a + f2bdad2 commit c696e91
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build-zip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build release zip

on:
workflow_dispatch

jobs:
build:
name: Build release zip
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build plugin # Remove or modify this step as needed
run: |
composer install --no-dev
npm install
npm run build
- name: Generate zip
uses: 10up/[email protected]
with:
retention-days: 5 # Optional; defaults to 5

0 comments on commit c696e91

Please sign in to comment.