Skip to content

Commit

Permalink
Add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
wgorczyca committed Mar 24, 2024
1 parent 3c75f59 commit 70d74f1
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
tags:
- "v*.*.*"

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 config controllers mails src views composer.json composer.lock config.xml index.php LICENSE logo.png simpay.php simpay
zip -r simpay-prestashop-${{ github.ref_name }}.zip simpay
- name: Release
uses: softprops/action-gh-release@v2
with:
files: simpay-prestashop-${{ github.ref_name }}.zip

23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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: [email protected]
password: simpay_demo
```
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- PS_DEV_MODE=1
- PS_DOMAIN=localhost:28080
- [email protected]
- ADMIN_PASSWD=simpay_demo
- ADMIN_PASSWD=demo_simpay
- _PS_ROOT_DIR_=/var/www/html
depends_on:
- db
Expand All @@ -35,4 +35,4 @@ volumes:
mysql_data:
driver: local
prestashop_data:
driver: local
driver: local

0 comments on commit 70d74f1

Please sign in to comment.