Skip to content

Commit

Permalink
Development
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Dec 9, 2024
1 parent 356ada8 commit 7384fa6
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,33 +150,34 @@ jobs:
ddev exec magerun2 config:store:set web/cookie/cookie_lifetime 31536000
ddev exec magerun2 config:store:set admin/security/password_lifetime 0
if grep -q "Magento_TwoFactorAuth" "$FILE"; then
if grep -q "Magento_TwoFactorAuth" "app/etc/config.php"; then
ddev exec bin/magento module:disable Magento_TwoFactorAuth -f
fi
- name: Create ZIP files
run: |
ddev exec zip -r /var/www/html/magento2-${{ matrix.MAGENTO_VERSION }}.zip /var/www/html
ddev exec magerun2 db:dump -c gz -n magento2.sql.gz
ddev exec zip -r /var/www/html/magento2-${{ matrix.MAGENTO_VERSION }}-with-db.zip /var/www/html
ddev exec zip -qr /var/www/html/magento2-${{ matrix.MAGENTO_VERSION }}.zip /var/www/html --exclude "/var/www/html/.github/*" "/var/www/html/.ddev/*"
# ddev exec magerun2 db:dump -c gz -n magento2.sql.gz
# ddev exec zip -qr /var/www/html/magento2-${{ matrix.MAGENTO_VERSION }}-with-db.zip /var/www/html --exclude "/var/www/html/.github/*" "/var/www/html/.ddev/*"

# Install sample data
ddev exec bin/magento sampledata:deploy
ddev exec magerun2 db:dump -c gz -n magento2.sql.gz
ddev exec zip -r /var/www/html/magento2-${{ matrix.MAGENTO_VERSION }}-with-sampledata.zip /var/www/html
# ddev exec bin/magento sampledata:deploy
# ddev exec magerun2 db:dump -c gz -n magento2.sql.gz
# ddev exec zip -qr /var/www/html/magento2-${{ matrix.MAGENTO_VERSION }}-with-sampledata.zip /var/www/html --exclude "/var/www/html/.github/*" "/var/www/html/.ddev/*"

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: |
magento-${{ matrix.MAGENTO_VERSION }}-php-${{ matrix.PHP_VERSION }}.zip
magento-${{ matrix.MAGENTO_VERSION }}-php-${{ matrix.PHP_VERSION }}-with-db.zip
magento-${{ matrix.MAGENTO_VERSION }}-php-${{ matrix.PHP_VERSION }}-with-sampledata.zip
# magento-${{ matrix.MAGENTO_VERSION }}-php-${{ matrix.PHP_VERSION }}-with-db.zip
# magento-${{ matrix.MAGENTO_VERSION }}-php-${{ matrix.PHP_VERSION }}-with-sampledata.zip

- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: 0.0.1
files: |
magento-${{ matrix.MAGENTO_VERSION }}-php-${{ matrix.PHP_VERSION }}.zip
magento-${{ matrix.MAGENTO_VERSION }}-php-${{ matrix.PHP_VERSION }}-with-db.zip
magento-${{ matrix.MAGENTO_VERSION }}-php-${{ matrix.PHP_VERSION }}-with-sampledata.zip
# magento-${{ matrix.MAGENTO_VERSION }}-php-${{ matrix.PHP_VERSION }}-with-db.zip
# magento-${{ matrix.MAGENTO_VERSION }}-php-${{ matrix.PHP_VERSION }}-with-sampledata.zip

0 comments on commit 7384fa6

Please sign in to comment.