Skip to content

Commit

Permalink
Fix zip installation on PrestaShop
Browse files Browse the repository at this point in the history
  • Loading branch information
seiwan committed Jul 15, 2024
1 parent 52691da commit a279495
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/ps8-build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,9 @@ jobs:
# It's mandatory to generate the zip inside a folder named ps_checkout, to make the zip installation working on PrestaShop
- name: Generate zip
run: |
ls -la
cd ../
zip -r ${{ env.ZIP_NAME }}.zip ${{ github.event.repository.name }} -x '*.git*' -x '.php_cs.*' -x '*/node_modules' -x 'composer.*' -x 'package.*' -x '.editorconfig' -x '*_dev*' -x '*test*' -x 'gha-creds-*.json'
cp ${{ env.ZIP_NAME }}.zip ${{ github.event.repository.name }}
# unzip ${{ env.ZIP_NAME }}.zip -d ${{ github.event.repository.name }}
# cd ${{ github.event.repository.name }}
# zip -r ${{ env.ZIP_NAME }}.zip . -x '*.git*' -x '.php_cs.*' -x '*/node_modules' -x 'composer.*' -x 'package.*' -x '.editorconfig' -x '*_dev*' -x '*test*' -x 'gha-creds-*.json'
# cd ../
# cp ${{ github.event.repository.name }}/${{ env.ZIP_NAME }}.zip .
- name: Push to GCP bucket storage
shell: bash
Expand Down Expand Up @@ -119,10 +113,12 @@ jobs:
- name: Install composer dependencies
run: composer install --no-dev -o

# It's mandatory to generate the zip inside a folder named ps_checkout, to make the zip installation working on PrestaShop
- name: Generate zip
run: |
cd ${{ github.event.repository.name }}
zip -r ${{ env.ZIP_NAME }}.zip . -x '*.git*' -x '.php_cs.*' -x '*/node_modules' -x 'composer.*' -x 'package.*' -x '.editorconfig' -x '*_dev*' -x '*test*'
cd ../
zip -r ${{ env.ZIP_NAME }}.zip ${{ github.event.repository.name }} -x '*.git*' -x '.php_cs.*' -x '*/node_modules' -x 'composer.*' -x 'package.*' -x '.editorconfig' -x '*_dev*' -x '*test*' -x 'gha-creds-*.json'
cp ${{ env.ZIP_NAME }}.zip ${{ github.event.repository.name }}
- name: Push to GCP bucket storage
shell: bash
Expand Down Expand Up @@ -178,6 +174,7 @@ jobs:
!../.editorconfig
!../_dev
!../tests
!../gha-creds-*.json
update_release_draft_production:
name: PRODUCTION - Update release draft
Expand All @@ -204,7 +201,7 @@ jobs:
- name: Prepare for Release
run: |
cd ${{ github.event.repository.name }}
zip -r ${{ env.ZIP_NAME }}.zip . -x '*.git*' -x '.php_cs.*' -x '*/node_modules' -x 'composer.*' -x 'package.*' -x '.editorconfig' -x '*_dev*' -x '*test*'
zip -r ${{ env.ZIP_NAME }}.zip . -x '*.git*' -x '.php_cs.*' -x '*/node_modules' -x 'composer.*' -x 'package.*' -x '.editorconfig' -x '*_dev*' -x '*test*' -x 'gha-creds-*.json'
- name: Clean existing assets
shell: bash
Expand Down

0 comments on commit a279495

Please sign in to comment.