Skip to content

Commit

Permalink
Fix the github files delettion from created zip and test for a duplic…
Browse files Browse the repository at this point in the history
…ate plugin directory left after creation of zip
  • Loading branch information
sushmita committed May 22, 2024
1 parent ba3e34b commit e958306
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions .github/workflows/scripts/prepare-release-asset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ cp adyen-shopware6/composer.json AdyenPaymentShopware6/.
# Zip the plugin directory
zip -r AdyenPaymentShopware6.zip AdyenPaymentShopware6/ ;

# Move the zip file to plugin folder
mv AdyenPaymentShopware6.zip adyen-shopware6

# Cleanup the zip installation
zip -d AdyenPaymentShopware6.zip __MACOSX/\* ; zip -d AdyenPaymentShopware6.zip *.git*

# Move the zip file to plugin folder
mv AdyenPaymentShopware6.zip adyen-shopware6

# Go back to workflow's root directory
cd adyen-shopware6
9 changes: 6 additions & 3 deletions .github/workflows/upload-release-asset.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
on:
release:
types: [published]
push:
# release:
# types: [published]

name: Upload Shopware 6 Marketplace asset

Expand All @@ -19,4 +20,6 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.ref_name }} AdyenPaymentShopware6.zip --clobber
cd ..
ls -l
# gh release upload ${{ github.ref_name }} AdyenPaymentShopware6.zip --clobber

0 comments on commit e958306

Please sign in to comment.