diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e8b50375e0..05552078b68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,6 +41,9 @@ jobs: - name: Composer install run: composer install --prefer-dist --no-progress --ignore-platform-req=ext-* --no-dev + - name: Optimize autoloader + run: composer dump-autoload --optimize + - name: Create ZIP file run: zip -rq openmage-${{ github.event.release.tag_name }}.zip . -x '.git/*' diff --git a/README.md b/README.md index e33cec3a218..310aaf9ba7b 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,12 @@ composer require "openmage/magento-lts":"1.9.4.x-dev" composer require "openmage/magento-lts":"20.0.x-dev" ``` +When deploying to a production environment, it's recommended to optimize Composer's autoloader to speed up classes lookup time: + +```bash +composer dump-autoload --optimize +``` + ### Git If you want to contribute to the project: