diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 91197f4..8bea107 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/package.sh b/package.sh index ae43b3c..0c7dc3c 100755 --- a/package.sh +++ b/package.sh @@ -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" @@ -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"