Skip to content

.github/workflows/release.yml #10

.github/workflows/release.yml

.github/workflows/release.yml #10

Workflow file for this run

on:
workflow_dispatch:
inputs:
pluginVersion:
description: 'Plugin Version'
type: string
required: true
env:
PLUGIN_VERSION: ${{ inputs.pluginVersion }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Create archive
uses: thedoctor0/[email protected]
with:
type: 'zip'
path: 'payu'
filename: 'payu_prestashop_plugin_${{ env.PLUGIN_VERSION }}.zip'
- name: Release
uses: ncipollo/release-action@v1
with:
name: '${{ env.PLUGIN_VERSION }}'
artifacts: 'payu_prestashop_plugin_${{ env.PLUGIN_VERSION }}.zip'
tag: 'v${{ env.PLUGIN_VERSION }}'
commit: 'master'
generateReleaseNotes: true