diff --git a/.github/workflows/buildzip.yml b/.github/workflows/buildzip.yml index 07724d1f..fd66c00b 100644 --- a/.github/workflows/buildzip.yml +++ b/.github/workflows/buildzip.yml @@ -2,8 +2,27 @@ name: Build release zip on: push: - branches: - - trunk + tags: + - "*" + +jobs: + build: + name: Build release zip + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - 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/action-wordpress-plugin-build-zip@stable + env: + SLUG: my-super-cool-plugin # optional, remove if GitHub repo name matches SVN slug, including capitalization jobs: build: