Merge pull request #32861 from woocommerce/fix/zip-workflow
Fix/zip workflow
This commit is contained in:
commit
79c2b29c1b
|
@ -36,11 +36,14 @@ jobs:
|
|||
working-directory: plugins/woocommerce
|
||||
run: bash bin/build-zip.sh
|
||||
|
||||
- name: Unzip the file (prevents double zip problem)
|
||||
run: unzip plugins/woocommerce/woocommerce.zip -d zipfile
|
||||
|
||||
- name: Upload the zip file as an artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
name: woocommerce
|
||||
path: plugins/woocommerce/woocommerce.zip
|
||||
path: zipfile
|
||||
retention-days: 7
|
||||
|
|
|
@ -32,6 +32,11 @@ jobs:
|
|||
if: steps.cache-deps.outputs.cache-hit != 'true'
|
||||
run: pnpm nx composer-install-no-dev woocommerce
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '7.4'
|
||||
|
||||
- name: Run build
|
||||
run: pnpm nx build woocommerce
|
||||
|
||||
|
@ -83,6 +88,11 @@ jobs:
|
|||
if: steps.cache-deps.outputs.cache-hit != 'true'
|
||||
run: pnpm nx composer-install woocommerce
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '7.4'
|
||||
|
||||
- name: Run build
|
||||
run: pnpm nx build woocommerce
|
||||
|
||||
|
@ -134,6 +144,11 @@ jobs:
|
|||
if: steps.cache-deps.outputs.cache-hit != 'true'
|
||||
run: pnpm nx composer-install woocommerce
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '7.4'
|
||||
|
||||
- name: Run build
|
||||
run: pnpm nx build woocommerce
|
||||
|
||||
|
|
Loading…
Reference in New Issue