From 6357e7b5a93b34957f6e9ca46ce6b7386cf12d54 Mon Sep 17 00:00:00 2001 From: Wojciech Gorczyca Date: Sun, 24 Mar 2024 10:42:34 +0100 Subject: [PATCH] Add release action --- .github/workflows/release.yaml | 36 ++++++++++++++++++++++++++++++++++ README.md | 23 ++++++++++++++++++++++ docker-compose.yaml | 4 ++-- 3 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..78ad68b --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,36 @@ +name: Release + +on: + push: + tags: + - "v*.*.*" + +env: + PACKAGE_NAME: simpay-prestashop-${{ github.ref_name }}.zip + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup PHP with composer v2 + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + tools: composer:v2 + + - name: Install composer dependencies + run: composer install --no-dev + + - name: Prepare zip package + run: | + mkdir simpay + cp -r . simpay + zip -r $PACKAGE_NAME simpay + + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: $PACKAGE_NAME diff --git a/README.md b/README.md index 7d1e8b0..fac5c67 100644 --- a/README.md +++ b/README.md @@ -1 +1,24 @@ # Simpay Prestashop + +### Requirements + +Prestashop >= 8.0 +PHP >= 8.1 + +### Installation + + + +### Development + +```bash +docker compose up -d +``` + +Shop link - http://localhost:28080 +Admin panel link - http://localhost:28080/admin + +```yaml +email: demo@simpay.pl +password: simpay_demo +``` diff --git a/docker-compose.yaml b/docker-compose.yaml index 147ac0f..1b76acb 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -10,7 +10,7 @@ services: - PS_DEV_MODE=1 - PS_DOMAIN=localhost:28080 - ADMIN_MAIL=demo@simpay.pl - - ADMIN_PASSWD=simpay_demo + - ADMIN_PASSWD=demo_simpay - _PS_ROOT_DIR_=/var/www/html depends_on: - db @@ -35,4 +35,4 @@ volumes: mysql_data: driver: local prestashop_data: - driver: local \ No newline at end of file + driver: local