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 6357e7b
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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
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 6357e7b

Please sign in to comment.