Skip to content

Add release action

Add release action #8

Workflow file for this run

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