Skip to content

Commit

Permalink
+ Add secrets for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu2607 committed Mar 24, 2024
1 parent e895605 commit 18a3a2e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ jobs:
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, mysql, zip

env:
COMPOSER_AUTH_JSON: |
{
"http-basic": {
"repo.magento.com": {
"username": "${{ secrets.MAGENTO_USERNAME }}",
"password": "${{ secrets.MAGENTO_PASSWORD }}"
}
}
}
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
Expand Down
15 changes: 14 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
"name": "pixelopen/magento-plausible",
"description": "Add Plausible Analytics to Magento",
"require": {
"php": "^8"
"php": "^8",
"magento/module-backend": "*",
"magento/module-checkout": "*",
"magento/module-config": "*",
"magento/module-contact": "*",
"magento/module-customer": "*",
"magento/module-store": "*",
"magento/framework": "*"
},
"type": "magento2-module",
"version": "100.2.1",
Expand All @@ -14,6 +21,12 @@
"PixelOpen\\Plausible\\": ""
}
},
"repositories": [
{
"type": "composer",
"url": "https://repo.magento.com/"
}
],
"authors": [
{
"name": "Pixel Open",
Expand Down

0 comments on commit 18a3a2e

Please sign in to comment.