Skip to content

Commit

Permalink
Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
regdos committed Sep 8, 2023
1 parent be70398 commit 3cc6bff
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,28 @@
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@master
- name: Archive Release
env:
PLUGIN_VERSION: ${{ inputs.logLevel }}
- uses: actions/checkout@v4
- name: Create archive
uses: thedoctor0/[email protected]
with:
type: 'zip'
directory: 'payu'
filename: 'payu_prestashop_plugin_${{ inputs.logLevel }}.zip'
filename: 'payu_prestashop_plugin_${{ env.PLUGIN_VERSION }}.zip'
- name: Release
uses: ncipollo/release-action@v1
with:
name: '${{ env.PLUGIN_VERSION }}'
artifacts: 'payu/payu_prestashop_plugin_${{ env.PLUGIN_VERSION }}.zip'
tag: 'v${{ env.PLUGIN_VERSION }}'
commit: 'master'
generateReleaseNotes: true

0 comments on commit 3cc6bff

Please sign in to comment.