Skip to content

Commit

Permalink
Update buildzip.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
saiftheboss7 authored Oct 10, 2024
1 parent 89939ec commit 370241a
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/buildzip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Build release zip

on:
push:
tags:
- "*"
branches:
- trunk

jobs:
build:
name: Build release zip
Expand All @@ -12,28 +13,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js 12.1.0
uses: actions/setup-node@v4
with:
node-version: 12.1.0
- uses: actions/checkout@master
- name: Npm install and build
run: |
rm -r package-lock.json
npm i
npm run build
npm run makepot
- name: Use desired version of php
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Composer install and build # Remove or modify this step as needed
run: |
composer install
composer update
composer dump-autoload -o
composer install --no-dev
composer dump-autoload -o
- 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
Expand Down

0 comments on commit 370241a

Please sign in to comment.