Skip to content

Commit

Permalink
chore: remove zip guzzle7 creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mastudillot committed Nov 28, 2024
1 parent ec1dc03 commit ba7dfd3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,3 @@ jobs:
asset_path: transbank-webpay-plus-rest.zip
asset_name: transbank-webpay-plus-rest.zip
asset_content_type: application/zip
- name: Upload transbank-webpay-plus-rest-guzzle7.zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: transbank-webpay-plus-rest-guzzle7.zip
asset_name: transbank-webpay-plus-rest-guzzle7.zip
asset_content_type: application/zip
15 changes: 0 additions & 15 deletions package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,12 @@ cd ..

sed -i.bkp "s/Version: VERSION_REPLACE_HERE/Version: ${TAG#"v"}/g" "$SRC_DIR/$MAIN_FILE"
sed -i.bkp "s/VERSION_REPLACE_HERE/${TAG#"v"}/g" "$SRC_DIR/$README_FILE"
cp "$SRC_DIR/$COMPOSER_LOCK_FILE" "$SRC_DIR/$COMPOSER_LOCK_FILE.bkp"

PLUGIN_FILE="transbank-webpay-plus-rest.zip"
PLUGIN_FILE_GUZZLE="transbank-webpay-plus-rest-guzzle7.zip"

cd $SRC_DIR
zip -FSr ../$PLUGIN_FILE . -x composer.json composer.lock webpack.config.js package.json package-lock.json "*.bkp"

# Create Guzzle 7 version
sed -i.bkp "s/\"php\": \"7.0\"/\"php\": \"7.2.5\"/g" "$COMPOSER_FILE"
composer require guzzlehttp/guzzle:^7.0
zip -FSr ../$PLUGIN_FILE_GUZZLE . -x composer.json composer.lock webpack.config.js package.json package-lock.json "*.bkp"

cp "$COMPOSER_LOCK_FILE.bkp" "$COMPOSER_LOCK_FILE"
rm "$COMPOSER_LOCK_FILE.bkp"
cp "$COMPOSER_FILE.bkp" "$COMPOSER_FILE"
rm "$COMPOSER_FILE.bkp"
composer update
composer install

cd ..

cp "$SRC_DIR/$MAIN_FILE.bkp" "$SRC_DIR/$MAIN_FILE"
Expand All @@ -60,4 +46,3 @@ rm "$SRC_DIR/$README_FILE.bkp"

echo "Plugin version: $TAG"
echo "Plugin file: $PLUGIN_FILE"
echo "Plugin file Guzzle 7: $PLUGIN_FILE_GUZZLE"

0 comments on commit ba7dfd3

Please sign in to comment.